jQuery mobile - DOM Exception 18
jQuery mobile - DOM Exception 18
我正在尝试使用jQuery mobile,但似乎还没有开始。
我在本地服务器上托管了以下HMTL文件:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
</head>
<body>
</body>
</html>
导致的原因
Javascript错误:未定义SECUIRTY_ERR:DOM异常18
从我的iPhone访问时http://192.168.1.1:8000/mobile.html
在jquery脚本包含标记之前,您是否也链接了CSS样式表文件?
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script>
此外,为了显示页面,您必须将内容包含在容器中,如下所示:
<body>
<div data-role='page'>
<div data-role='header'>
Header goes here
</div>
<div data-role='content'>
Content goes here
</div>
</div>
</body>
相关文章:
- TypeError (null reference exception) when using dom-construc
- PhoneGap iOS + DOM Exception 18
- Javascript: InvalidStateError:DOM Exception 11
- DOM Exception 18 getImageData
- jQuery mobile - DOM Exception 18
- 未捕获的错误:NotFoundError: DOM Exception 8 Chrome扩展
- DOM Exception 11 InvalidStateError with webkitEnterFullscree
- not found error: DOM exception 8
- domToImage代码抛出安全错误(Dom Exception 18)仅在iOS浏览器上
- Phantom.js Webdriver.io Error: SyntaxError: DOM Exception 12
- InvalidStateError: DOM IDBDatabase Exception 11
- 未捕获的错误:INDEX_SIZE_ERR: DOM Exception 1, getImageData
- 未捕获的错误:SECURITY_ERR: DOM Exception 18当在WebGL中应用纹理与Three.js
- Dom Exception 12 in Zepto.js
- NotFoundError: DOM Exception 8
- DOM exception 11
- 未捕获的错误NOT_FOUND_ERR DOM Exception
- Uncaught Error: SecurityError: DOM Exception 18 Canvas
- DOM Exception 12 for window.postMessage
- 未捕获错误:DATA_CLONE_ERR: DOM Exception 25'由网络工作者抛出