【JQuery】动态设置img图片路径

$(document).ready(function(){
 var spath=”url路径”;
$(“#pic”).attr(“src”,spath)
$(“#pic1”).attr(“src”,spath)
});

Author: jhonse

Jhonse技术博客: http://blog.jhonse.com

Leave a Reply

Your email address will not be published. Required fields are marked *