dav*_*qet 0 html javascript css jquery
为什么以下不返回'true'?我知道我必须缺少一些基本的东西.
var test = $("#test");
test.prop("disabled", true);
alert(test.is(":disabled"));Run Code Online (Sandbox Code Playgroud)
#test {
width: 100px;
height: 50px;
background-color: red;
}Run Code Online (Sandbox Code Playgroud)
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"></script>
<div id="test"></div>Run Code Online (Sandbox Code Playgroud)