标签:style blog io color ar sp div on art
//valueStr 整个字符串 nameStr待切割的字符串 function GetPartStrCount (valueStr, partStr) { //debugger valueStr = $.trim(valueStr); partStr = $.trim(partStr); if (partStr == "" || valueStr=="") return 0; valueStr = escape(valueStr.split(‘‘).join(‘‘));//转码 partStr = escape(partStr.split(‘‘).join(‘‘)).replace(/%u200B/g, ‘‘); var count = valueStr.split(partStr).length - 1; return count; }
标签:style blog io color ar sp div on art
原文地址:http://www.cnblogs.com/xiaoduanboke/p/4070858.html