1
0
mirror of https://gitee.com/bitdance-team/chrome-extension synced 2025-10-08 08:45:14 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

翻译按钮点击绑定事件

This commit is contained in:
2022-02-09 19:30:31 +08:00
parent 2cf513d676
commit 6d6ccc6f34
2 changed files with 8 additions and 6 deletions

View File

@@ -88,12 +88,13 @@ document.getElementById("weatherSite").onclick = function() {
searchWeatherfn()
}
// //天气end
//天气end
//翻译
//默认参数
// document.getElementById("TOtans").onclick = function () {
// console.log(chrome.extension.getBackgroundPage())
// chrome.extension.getBackgroundPage().tranBit()
// }
document.getElementById("transform").onclick = function () {
console.log(chrome.extension.getBackgroundPage())
chrome.extension.getBackgroundPage().tranBit()
}
//翻译end