1
我在智能搜索字段执行搜索之前看到SafariBeforeSearchEvent
事件触发。所以我开始尝试,但这不是工程或我的代码是错误的。这是我的代码:Safari扩展事件:SafariBeforeSearchEvent
safari.application.addEventListener("SafariBeforeSearchEvent", handleBeforeSearch, false);
function handleBeforeSearch(event) {
alert("Test");
}
而当我使用智能搜索字段搜索某些内容时,不会显示任何提示。这是为什么?