Web5/js/artDialog4.1.7/artDialog.source.js
(开头部分) 52KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*!
* artDialog 4.1.7
* Date: 2013-03-03 08:04
* http://code.google.com/p/artdialog/
* (c) 2009-2012 TangBin, http://www.planeArt.cn
*
* This is licensed under the GNU LGPL, version 2.1 or later.
* For details, see: http://creativecommons.org/licenses/LGPL/2.1/
*/
;(function (window, undefined) {
//if (window.jQuery) return jQuery;
var $ = window.art = function (selector, context) {
return new $.fn.init(selector, context);
},
readyBound = false,
readyList = [],
DOMContentLoaded,
isOpacity = 'opacity' in document.documentElement.style,
quickExpr = /^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,
rclass = /[\n\t]/g,
ralpha = /alpha\([^)]*\)/i,
ropacity = /opacity=([^)]*)/,
rfxnum = /^([+-]=)?([\d+-.]+)(.*)$/;
if (window.$ === undefined) window.$ = $;
$.fn = $.prototype = {
constructor: $,
/**
* DOM 就绪
* @param {Function} 回调函数
*/
ready: function (callback) {
$.bindReady();
if ($.isReady) {
callback.call(document, $);
} else if (readyList) {
readyList.push(callback);
};
return this;
},
/**
* 判断样式类是否存在
* @param {String} 名称
* @return {Boolean}
*/
hasClass: function (name) {
var className = ' ' + name + ' ';
if ((' ' + this[0].className + ' ').replace(rclass, ' ')
.indexOf(className) > -1) return true;
return false;
},
/**
后面还有 2018 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
