小编use*_*803的帖子

在 Chrome 扩展程序的网上商店列表中更改“来自 [名称]”/“由 [名称] 提供”

我创建了一个 Chrome 扩展程序。默认情况下,它在“来自 xyzpqr”中使用了我的 Gmail ID。

CWS上市

如何将我的 Gmail ID 更改为其他内容?

google-chrome google-chrome-extension chrome-web-store

6
推荐指数
1
解决办法
1082
查看次数

使用jQuery Mobile,onload函数不会在HTML中触发

我有一个index.html语法如下的文件

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
</head>
<body>
<a href="occassion.html">
  <img class="frametoicon" src="img/occasion.png" />
</a>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

然后我有occassion.html具有body onload如下功能的页面

  <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
<title>Occassion</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
<script>

    function loaded() {
        alert("hii");
    }
</script>
</head>
<body onLoad="loaded()">
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

但onload函数没有启动....如果我尝试刷新页面(occassion.html)然后onload函数被激活...为什么它导航时不工作index.html?

如果我删除jQuery文件,那么它按预期工作....我想要添加什么?

这也行不通

 $(document).ready(function () {
        loaded();
    });
Run Code Online (Sandbox Code Playgroud)

编辑

我补充道 …

html javascript jquery jquery-mobile

4
推荐指数
1
解决办法
1万
查看次数