<!Doctype> javascript
<html></script> html
}) java
console.log(3)//3處始終 不受影響 jquery
</script></html> spa
============================ htm
這樣就會有個坑爹的問題你覺得你 js 代碼 是獨立分開的,誰知前邊某個地方(也許是引入的某個基於jquery onReady 執行的第三方庫)的發生了異常,就致使你後邊的 jquery onReady 方法中的 代碼 未執行 ip