jQuery获取属性值

<img id="img" src="/img" />
$("#img").attr("src");

 

posted @ 2017-05-17 09:30  如果屈原会编程  阅读(195)  评论(0编辑  收藏  举报