需要帮助写一张清单。
<div id="ul">
<li></li>
</div>发布于 2014-02-04 17:50:16
这应该可以做到:
function adddbItem(){
var text = document.getElementById("textInput").value;
//create array of strings
var textArray = [];
textArray = text.split("\.");
//loop through the array and add each string
for (var i = 0; i < textArray.length; i++)
{
//alert(textArray[i]);
myIdb.indexedDB.adddbItem(textArray[i]);
}
}小提琴:http://jsfiddle.net/D68Mb/3/
不过,您需要修复显示方法。
https://stackoverflow.com/questions/21557684
复制相似问题