嘿伙计们,我计划上传我的谷歌浏览器。
根据文档,我已将整个文件制作为 zip 格式,并将其manifest.json放在根目录中。
但是当我选择文件并将其上传到网上商店时,它显示错误,例如
An error occurred: Failed to process your item.
Invalid package. Please make sure it is a valid zip file and the file manifest.json is at the root directory of the zip package.
谁能告诉我为什么会变成这样???
任何帮助将不胜感激..提前谢谢
onClick大家好,我是 javascript 的新手。我想知道如何使用javascript 中的方法获取段落中的点击次数。
我使用的代码是
<html>
<body>
<p id="avalue"> kdfbkjdf </p>
<script>
var a = document.getElementById('avalue');
a.onClick = function(b) {
console.log(b);
}
</script>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
此代码没有显示任何错误,但是当我单击该段落时,我没有得到单击的数字。
我怎样才能实现 onclick 方法??..
任何帮助,将不胜感激