怎么用javascript做網(wǎng)頁 怎么用js做一個表格?
怎么用js做一個表格?通過動態(tài)創(chuàng)建表來創(chuàng)建表,TR,TD函數(shù)autocreate(){//Create table var table=文檔.createElement(“表”)表.setAttrib
怎么用js做一個表格?
通過動態(tài)創(chuàng)建表來創(chuàng)建表,TR,TD函數(shù)autocreate(){//Create table var table=文檔.createElement(“表”)表.setAttribute(“border”,“1”)表.setAttribute(“background”,“red”)//獲取行值var line=文檔.getElementById(“行”)。Value//獲取列值var list=文檔.getElementById(“列表”)。Valuefor(VaR I=1I<=lineI){//Alert(line)//創(chuàng)建trvar tr=文檔.createElement(“tr”)for(VaR J=1J<=listj){//警報(列表)//創(chuàng)建tdvar TD=文檔.createElement(“td”)td.innerHTML=我* jtr.1子級(td)}表.appendChild(tr)}文檔.getElementById(“d1”).appendChild(table)}
知道兩個月就夠了,學習要靠你的天性。
學習JS找工作只不過是以下幾點
!2:后臺工作:網(wǎng)站后臺工作應至少能使用一種腳本語言,如主流的ASP、PHP、JSP、ASPX。那么你至少應該熟悉一種對應的數(shù)據(jù)庫,比如ASP對應的SQL server,PHP對應的MySQL等等
3:網(wǎng)站維護:不用說,服務器知識,算法,正則表達式,網(wǎng)站攻防防火墻等等