$("[hello='world']").html("heihei!!!"); jQuery属性选择器

<body>

<div hello="world" class="">heihei!!!</div>
<script type="text/javascript">
$("[hello='world']").html("heihei!!!");
</script>
 

</body>

 

posted @ 2017-12-06 09:55  sky20080101  阅读(55)  评论(0)    收藏  举报