using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; public class ClickTest : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update()…
document.onclick = function (e) { var e = e ? e : window.event; var tar = e.srcElement || e.target; if (tar.id != "searchData") { pagesZone.style.display = "none"; } } 以上代码在电脑浏览器和安卓上都能触发alert事件,但是在iOS上却完全没有反应. 如果这个name标签是button的可click事…