标签:os io for ar cti div 代码 html
<ul id="edit" contenteditable="true">
<li>修改我吧,然后刷新页面看看,^_^</li>
</ul>
var edit = document.getElementById("edit");
edit.onblur = function(){
localStorage.setItem("tododata", this.innerHTML);
};
if(localStorage.getItem("tododata")){
edit.innerHTML = localStorage.getItem("tododata");
}
标签:os io for ar cti div 代码 html
原文地址:http://www.cnblogs.com/dingyuanxin/p/3918081.html