After following, you can keep track of his dynamic information in a timely manner
Courses in the relevant section:Introduction to the concept of JavaScript variables
var name="alone88"; document.write(name);
2018-05-140個贊
to.LowerCase()轉(zhuǎn)換成小寫?
2018-05-150個贊
除了undefined和null其Ta都是我的對象?
2018-05-150個贊
## **JavaScript增刪改查** 第一種 .(點(diǎn)操作符) ```JavaScript 不加='',則是查看內(nèi)容,加了就是增加或修改 var h2 = document.getElementsByTagName('h2');//先定義變量 h2.ClassName ='class'//增加或修改Class的內(nèi)容 h2.Id = 'id'//增加或修改id的內(nèi)容 h2.style.color ='red' //增加或修改style的內(nèi)容,style. ``` 第二種:Attribute(屬性) ``` h2.getAttribute('屬性名')//獲取屬性; h2.setAttribute('屬性名','要修改的內(nèi)容')//修改 h2.removeAttribute('屬性或元素')//刪除 ``` 第三種:attributes ``` h2.attributes//獲取屬性 h2.attributes[索引]; h2.attributes['屬性']; h2.attributes['屬性'].nodeType='修改的內(nèi)容'//修改 h2.attributes.removeNamedItem('屬性')//刪除內(nèi)容
2018-05-181個贊
var Value =document.getElementsByTagName("標(biāo)簽"); for(var i = 0;i<li.length;i++){ li[i].style.color="" }
2018-05-190個贊
1:DocumentRoot <Directory>
2018-05-210個贊
Courses in the relevant section:Independent installation (2): PHP and Apache integration
loadModule
2018-05-210個贊
Courses in the relevant section:Tips on using the front-end code artifact Emmet
非常強(qiáng)大
$,@添加序號
2018-05-210個贊