2016-01-23 119 views

回答

1

編寫一個接受數據的ASP頁面,解析',andtags into rows of values and then do a SQL INSERT`語句。

但是爲什麼首先將它首先編碼到',and`字段?爲什麼不粘貼數據並將其提交給服務器,然後在服務器上進行解析?

var rows = data.split("\n"); 

for(var y in rows) { 
    var cells = rows[y].split("\t"); 

    // call sql 'INSERT' supplying cell[0] ... cell[n] 
    // as the arguments values of the INSERT   
} 

}

相關問題