Shopify Free Trial Apply
Shopify 60天试用
Shopify 14天试用

利用jquery api进行简单的批量替换链接

$(".content-tel").children("a:first-child").attr("href","http://www.domain.com/contact";);
 
 
如果有很多同样的元素要修改为同一个链接,那这样就省去了一个个页面修改链接的时间,提高效率
1
2018-04-16

1 个评论

$(".content-tel").children("a:last-child").text("xxxxxxx"); 这是利用jquery api进行批量替换文本内容

要回复文章请先登录注册