Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找允许我将 div 中的所有美元符号替换为“CHF”(另一种货币)的功能。原因是货币符号是硬编码的,应该被替换。
有没有一种简单的方法可以做到这一点?
提前谢谢了。
jQuery('div').each(function(i){ jQuery(this).text(jQuery(this).text().replace('$','CHF')) })