为什么它不起作用?
var x = document.getElementById('test').name;
alert(x); // jhon
<div id='test' name='jhon'> its just a text </div>
蛊毒传说
侃侃尔雅
精慕HU
相关分类