red*_*are 12 javascript jquery jquery-plugins
与SO上的c#扩展主题类似,如果我们可以整合大量有用的jQuery函数扩展,那将是很好的.
请注意,我们的想法是使用简短的代码片段,而不是使用众所周知的插件或ui小部件
red*_*are 10
// Allows chainable logging
// USAGE: $('#someDiv').hide().log('div hidden').addClass('someClass');
// Demo : http://jsbin.com/odeke
jQuery.log = jQuery.fn.log = function (msg) {
if ( window.console && window.console.log ) {
console.log("%s: %o", msg, this);
}
return this;
};
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1337 次 |
最近记录: |