我在onClick事件中调用了一个函数,但有时不触发,有时却可以工作。这不是浏览器问题,因为我已在所有浏览器中签入。请任何人提出一些建议。这是我的代码...
<!DOCTYPE html>
<html lang="en">
<head>
...
<script src="/js/common.header.js"></script>
<script src="/js/app.header.js"></script>
<script>
... // Immediate calling of some of the the global methods defined in app.header
</script>
</head>
<body>
...
<script src="/js/vendors.js"></script>
<script src="/js/common.js"></script>
<script src="/js/app.js"></script>
<script src="..."></script> // page specific files etc.
</body>
</html>