EasyShop/Content/images2/mkl/jquery.string.1.0.js
(开头部分) 15KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* jquery.string - Prototype string functions for jQuery
* (c) 2008 David E. Still (http://stilldesigning.com)
* Original Prototype extensions (c) 2005-2008 Sam Stephenson (http://prototypejs.org)
*/
jQuery.extend({
__stringPrototype: {
/**
* ScriptFragmet, specialChar, and JSONFilter borrowed from Prototype 1.6.0.2
*/
JSONFilter: /^\/\*-secure-([\s\S]*)\*\/\s*$/,
ScriptFragment: '<script[^>]*>([\\S\\s]*?)<\/script>',
specialChar: {
'\b': '\\b',
'\t': '\\t',
'\n': '\\n',
'\f': '\\f',
'\r': '\\r',
'\\': '\\\\'
},
/**
* Check if the string is blank (white-space only or empty).
* @param {String} s string to be evaluated
* @return {Boolean} boolean of result
*/
blank: function(s) {
return /^\s*$/.test(this.s(s) || ' ');
},
/**
* Converts a string separated by dashes into a camelCase equivalent.
* For instance, 'foo-bar' would be converted to 'fooBar'.
* @param {String} s string to be evaluated
* @return {Boolean} boolean of result
*/
camelize: function(s) {
var a = this.s(s).split('-'), i;
s = [a[0]];
for (i=1; i<a.length; i++){
s.push(a[i].charAt(0).toUpperCase() + a[i].substring(1));
}
s = s.join('');
return this.r(arguments,0,s);
},
/**
* Capitalizes the first letter of a string and downcases all the others.
* @param {String} s string to be evaluated
* @return {Boolean} boolean of result
*/
capitalize: function(s) {
s = this.s(s);
s = s.charAt(0).toUpperCase() + s.substring(1).toLowerCase();
return this.r(arguments,0,s);
},
/**
* Replaces every instance of the underscore character ("_") by a dash ("-").
* @param {String} s string to be evaluated
* @return {Boolean} boolean of result
*/
后面还有 365 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。