<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    http://www.tkk7.com/ebecket 返還網(wǎng)
    隨筆-140  評論-11  文章-131  trackbacks-0

    類型轉(zhuǎn)換:parseInt\parseFloat\toString

    類型判斷:typeof;eg:if(typeof(var)!="undefined")\isNaN

    字符處理函數(shù):toLowerCase\touppercase\ 
    substring(從哪里截到哪)\substr(從哪里開始;截多少個字符) \indexOf(字串中找某串字符)\replace(替換函數(shù))\
    charCodeAt
    concat
    split
    join

    定時處理函數(shù):setInterval;setTimeout;clearTimeout;clearInterval

    兩個顯示控制屬性:visibility(hidden,hide,show,visible);display(none,block,inline)

    編碼的一些函數(shù):escape();

    取得對象的方法:
    document.getElementsByTagName(根據(jù)標(biāo)簽名獲得對象組)\
    document.getElementsByTagName('head').item(0)
    document.getElementsByName(通過NAME獲得對象)\
    document.getElementById(通過ID獲得對象)\
    document.form1.f1\
    document.all.tags(t)[id]
    document.all[id]
    document.layers[id]

    不常用的一些方法:
    moveToAbsolute:
    fromElement
    toElement
    contains
    captureEvents
    parent.frames
    moveTo(x,y)
    resizeBy(x,y)
    resizeTo(x,y)
    attachEvent('onmousedown',showHide);
    document.createElement('')
    document.createTextNode('')
    obj.setAttribute('src','')
    obj.getAttribute('')
    event.srcElement
    style.cssText
    document.body.appendChild
    document.body.removeChild
    document.body.insertAdjacentHTML("AfterBegin",s)
    innerHTML/
    removeNode
    insertBefore
    arguments
    event.keyCode

    正則相關(guān):RegExp(eg:new RegExp("\"","g"))

    一些長寬及位置屬性:
    window.innerHeight
    window.innerWidth
    document.documentElement.clientWidth
    document.documentElement.clientHeight
    document.body.clientWidth
    document.body.clientHeight
    document.body.offsetWidth
    document.body.offsetHeight
    document.body.scrollLeft
    document.body.scrollTop
    document.location.reload()

    window一些方法:
    window.onerror=function(){return true;}隱去報錯
    window.onload\window.onunload
    window.status
    window.parent.location.href
    window.location.href
    window.top.location.href

    數(shù)學(xué)方法:
    Math.max

    數(shù)組方法:
    length
    slice

    JS輸出方法:
    document.write(s);
    alert(s);
    confirm
    prompt
    document.writeln
    彈窗方法:
    window.showModalDialog(<url>,<標(biāo)題>,<屬性>)
    window.open("","","");


    附:常用DOM方法和屬性(即必須掌握部分)

    創(chuàng)建節(jié)點:createElement();createTextNode()
    復(fù)制節(jié)點:cloneNode()
    插入節(jié)點:appendChild();insertBefore()
    刪除節(jié)點:removeChild()
    替換節(jié)點:replaceChild()
    設(shè)置節(jié)點屬性:setAttribute()
    查找節(jié)點:getAttribute();getElementById();getElementsByTagName();hasChildNodes
    節(jié)點的屬性:nodeName;nodeType;nodeValue
    遍歷節(jié)點樹:childNodes;firstChild;lastChild;nextSibling;parentNode;previousSibling

    posted on 2009-10-28 13:52 becket_zheng 閱讀(162) 評論(0)  編輯  收藏 所屬分類: 網(wǎng)頁web前端技術(shù)
    主站蜘蛛池模板: heyzo亚洲精品日韩| 亚洲综合亚洲国产尤物| 免费国产污网站在线观看| 亚洲综合区图片小说区| 日韩免费福利视频| 国产一区二区三区免费观在线| 中文字幕亚洲第一在线| 日本免费一区二区三区最新| 女人隐私秘视频黄www免费| 亚洲乱人伦精品图片| 亚洲av中文无码| 中文字幕免费观看| 野花视频在线官网免费1| 久久久久久久久亚洲| 免费国产在线观看老王影院| 91精品免费不卡在线观看| 男女猛烈激情xx00免费视频| 亚洲二区在线视频| 国产自偷亚洲精品页65页| 曰批全过程免费视频在线观看| 男女拍拍拍免费视频网站| 亚洲乱亚洲乱妇24p| 久久精品国产亚洲| 午夜亚洲国产成人不卡在线| 久久99九九国产免费看小说| 国产特黄一级一片免费| 亚洲AV性色在线观看| 亚洲精品国产手机| 国产国拍亚洲精品mv在线观看| 永久免费视频v片www| 亚洲国产精品免费观看| 日本一区二区免费看| 一二三四在线观看免费中文在线观看| 亚洲网站免费观看| 亚洲大尺度无码专区尤物| 免费日本黄色网址| 女性无套免费网站在线看| 四虎在线视频免费观看视频| 免费看搞黄视频网站| 国产无限免费观看黄网站| 无码毛片一区二区三区视频免费播放 |