js怎么替换html中img的【src="⼀xxx】这一节括号内的字符串。

2025-03-23 02:48:05
推荐回答(1个)
回答1:

你把那段字符串做成参数带入就可以随便换了
var imgSrc="../../doc/xxxx.jpg";
var html='';