document.write()
document.write()這個(gè)是什么意思 document.getElementById("p1").style.color="blue" 是獲取名字叫做p1的id的
標(biāo)簽 顏色為藍(lán)色
document.write()這個(gè)是什么意思 document.getElementById("p1").style.color="blue" 是獲取名字叫做p1的id的
標(biāo)簽 顏色為藍(lán)色
2017-06-19
舉報(bào)
2017-07-09
//輸出語(yǔ)句 類似Java中的System.out.printlb();
document.write();
//獲取p1這個(gè)ID元素 將樣式顏色設(shè)置為藍(lán)色
document.getElementById("p1").style.color="blue";
2017-06-20
類似于java的System.out.print(),也類似于C++中的cout<<,都是用來(lái)輸出用的。