html代码
<html>
<td><input id="id1" value="3000" a type="text" /></td>
</html>
我需要值 3000 在 csv 文件中,请帮助
我的功能
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js">
var $rows = $table.find('tr:has(td)'),
// Temporary delimiter characters unlikely to be typed by keyboard
// This is to avoid accidentally splitting the actual contents
tmpColDelim = String.fromCharCode(11), // vertical tab character
tmpRowDelim = String.fromCharCode(0), // null character
// actual delimiter characters for CSV format
colDelim = '","',
rowDelim = '"\r\n"',
// Grab text from table into CSV formatted string
csv = '"' + $rows.map(function (i, row) {
var $row = $(row),
$cols = $row.find('td');
return $cols.map(function (j, col) {
var $col = $(col),
text = $col.text();
return text.replace(/"/g, '""'); // escape double quotes
}
</script>
现在写我正在获取数据为“”,“”,“”,“,”,“”,“”的csv文件,