js正则替换图片属性正则替换:.replace((src=[^u]*upload[^ >]*)([ >])g,'$1 class=“aaa”$2')比如你执行一下function run(){alert(&q2023-04-18JavaScript210