1添加属性 $("#mydiv").attr("pro1","this is val"); $('.img1').attr('src', '/img/1.jpg'); 2设置样试 $("#mydiv").css("width","100px"); 3操作json取值 var jsonstr="Res Read More
posted @ 2016-02-19 15:23 咸鱼公子 Views(128) Comments(0) Diggs(0) Edit