Blogger Information
Blog 9
fans 0
comment 0
visits 9032
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
自动替换html中文字的js代码
程序员的博客
Original
1755 people have browsed it
function replaceStr(){

	if($(".m-ct").length>0){

	//替换为空

		$(".m-ct").html($(".m-ct").html().replace(/(权威的)/gi,""));

		$(".m-ct").html($(".m-ct").html().replace(/(权威)/gi,""));

		$(".m-ct").html($(".m-ct").html().replace(/(绝对的)/gi,""));

		$(".m-ct").html($(".m-ct").html().replace(/(绝对)/gi,""));

		$(".m-ct").html($(".m-ct").html().replace(/(独创的)/gi,""));

		$(".m-ct").html($(".m-ct").html().replace(/(独创)/gi,""));

		$(".m-ct").html($(".m-ct").html().replace(/(一流的)/gi,""));

		$(".m-ct").html($(".m-ct").html().replace(/(一流)/gi,""));

		//第一

		$(".m-ct").html($(".m-ct").html().replace(/(第一品牌)/gi,"专业品牌"));

		$(".m-ct").html($(".m-ct").html().replace(/(领导品牌)/gi,"专业品牌"));

		$(".m-ct").html($(".m-ct").html().replace(/(第一)/gi,"THE FRIST"));

		$(".m-ct").html($(".m-ct").html().replace(/(NO.1)/gi,"THE FRIST"));

		$(".m-ct").html($(".m-ct").html().replace(/(No.1)/gi,"THE FRIST"));

	 }

}

replaceStr();
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!