<!Doctype> javascript
<html></script> html
}) java
console.log(3)//3处始终 不受影响 jquery
</script></html> spa
============================ htm
这样就会有个坑爹的问题你觉得你 js 代码 是独立分开的,谁知前边某个地方(也许是引入的某个基于jquery onReady 执行的第三方库)的发生了异常,就致使你后边的 jquery onReady 方法中的 代码 未执行 ip