一个不错的属性contenteditable

<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<div contenteditable=true id=td1>
11111
</div>
<button onclick=showChanged()>change</button>

<script>
function showChanged(){
alert($("#td1").html());
}
</script>

在看html5 ,一个不错的属性,可惜jquery的change不支持。。。其实想达到angularJS那个效果

猜你喜欢

转载自fighter1945.iteye.com/blog/2314537