文章出處
文章列表
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>無標題文檔</title> </head> <body> <script> /* 兼容性問題常見解決途徑 1:利用能力檢測 2:利用瀏覽器怪癖 3:利用用戶代理檢測 //技巧 正則匹配的 str.text(/reg/)時 RegExp.$1 ...下就有匹配的結果 常用的匹配結尾正則用 ([^>]+) */ document.domain//修改可用于同域名不同二級域名的跨域.(只能修改一次,修改第二期domain不報錯) //text節點的 nomalize()規范化節點 splitText(index)分割節點 document.createComment('瀏覽器注釋'); document.getElementsByTagName('div');//這東西是實時更新的,要注意了,很早就說過了,白學了,你個2 window.iframe[0/*number || 'name'*/]; window.top; window.parent; window.self; window.moveTo(1,2); window.moveBy(1,1); window.location.href; window.location.hash; window.location.port; window.location.path; window.location.search; //修改以下的東東就會修改頁面的鏈接地址 window.location.href; window.location.assgin; window.location; //搞清楚閉包和匿名函數的區別 //面向對象程序設計 //JS中的各種繼承方法 </script> </body> </html>
文章列表
全站熱搜