这是我的 popup.html 代码:
<a href="http://google.com">Google</a>
Run Code Online (Sandbox Code Playgroud)
但是当我点击谷歌链接时什么也没有发生。如何使链接将我带到当前选项卡中的 google.com?
I'm working on a chrome extension and I'm using a lot of if statements to check the webpage for a list of words. And I have to continuously type each word over and over again but I'm wondering if there was a way to check the words one time through a list.
Currently I'm kinda working like this:
if (text == "apple")
if (text == "orange")
if (text == "Banana")
if (text == "Cherry")
if (text == "Lime")
Run Code Online (Sandbox Code Playgroud)
and so …