标签:
// Trim() , Ltrim() , RTrim() String.prototype.Trim = function(){ return this.replace(/(^\s*)|(\s*$)/g, ""); } String.prototype.LTrim = function(){ return this.replace(/(^\s*)/g, ""); } String.prototype.RTrim = function() { return this.replace(/(\s*$)/g, ""); } var Cts = "bblText"; if(Cts.indexOf("Text") >= 0 ) { alert(‘Cts中包含Text字符串‘); }
标签:
原文地址:http://www.cnblogs.com/wangjianxa/p/4392032.html