jQuery(document).ready(function(){
jQuery("div.groupheader").each(function(){
$(this).text($(this).text().substr(3));
});
});
转载于:https://www.cnblogs.com/GreenGrass/p/4666750.html
本文介绍了一个使用jQuery简化网页元素文本处理的方法,通过截取div.groupheader类下的元素文本,实现去除前缀的效果。
jQuery(document).ready(function(){
jQuery("div.groupheader").each(function(){
$(this).text($(this).text().substr(3));
});
});
转载于:https://www.cnblogs.com/GreenGrass/p/4666750.html

被折叠的 条评论
为什么被折叠?