国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JavaScript > 正文

JavaScript實現添加、查找、!刪除元素

2019-11-02 14:25:48
字體:
來源:轉載
供稿:網友

   這篇文章主要匯總介紹了JavaScript實現添加、查找、刪除元素的方法,十分的簡單實用,有需要的小伙伴可以參考下。

  代碼很簡單,這里就不多廢話了。

  ?

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>測試文件</title> <style> .reply { width: 500px; height: 100%; overflow: hidden; background-color:#CCC; margin-top: 10px; } .infoArea { width: 380px; height: 100%; overflow: hidden; } .words { width: 380px; height: auto; margin: 5px 0px; float: left; font-size: 14px; } .time { margin-left: 10px; margin-bottom: 3px; width: 150px; height: 20px; line-height: 20px; float: left; font-family: 楷體; font-size: 14px; color: #999; } .replyButton { width: 60px; height: 20px; float: left; margin-bottom: 10px; } .replyButton input { font-size: 12px; } #cancelButton { visibility: hidden; } </style> </head>   <body> <div class="reply"> <div class="infoArea"> <div class="words"><a href="">中央情報局</a>:中央情報局</div> <div class="time">2014年5月4日21:56</div> <div class="replyButton"> <input type="button" id="submitButton" value="回復" onClick="showReplyArea(this)" /> </div> <div class="replyButton"> <input type="button" id="cancelButton" value="取消" onClick="hideReplyArea(this)" /> </div> </div> </div> <script> //顯示文本框的函數 function showReplyArea(src) { inputText = document.createElement("DIV"); inputText.className = "inputText"; inputText.style.width = '100%'; inputText.style.height = '75px'; inputText.style.margin = '3px 0'; inputText.style.cssFloat = 'left';   var grandfather = src.parentNode.parentNode.parentNode; grandfather.appendChild(inputText);   form1 = document.createElement("FORM"); form1.action = ""; form1.method = "post"; inputText.appendChild(form1);   inputTextArea
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 和平县| 吴川市| 河源市| 合阳县| 色达县| 弥渡县| 定西市| 册亨县| 延吉市| 育儿| 东明县| 临夏市| 镇安县| 嵊州市| 湟中县| 成安县| 萍乡市| 湘潭市| 宁都县| 九龙城区| 资讯 | 卢龙县| 沙田区| 轮台县| 武清区| 镇原县| 滦平县| 滨海县| 永仁县| 广河县| 疏附县| 朔州市| 阿尔山市| 湘乡市| 慈溪市| 浦北县| 岳阳县| 色达县| 北辰区| 历史| 托里县|