我正在尝试为 Blackberry Playbook 开发一个应用程序(是的,我知道,它已经死了......请耐心等待)。
我正在使用一个简单的 WebWorks 应用程序,当我加载页面时,我的 jQuery ready() 函数似乎被调用了两次。
<!doctype html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
alert("ready");
});
</script>
</head>
<body>
Hello World.
</body>
</html>
知道为什么会发生这种情况吗?我正在 Playbook 的 Ripple 模拟器中进行测试。