1. [代码][JavaScript]代码 /*! * jLim Core * * jLim is a small JavaScript base code. It can be used to built your own * JavaScript library or framework. * * @version 0.1.1 * @author Victor Villaverde Laan * @link ...【阅读全文】
1. [代码]tmpl.js // Simple JavaScript Templating// John Resig - http://ejohn.org/ - MIT Licensed(function() {var cache = {};this.tmpl = function tmpl(str, data) {// Figure out if we're getting a template, or if we need to// load the template - and be sure to cache the re...【阅读全文】
Javascript对象拷贝(clone)1. [代码]方法代码 function cp(source, target) { function isBaseType(v) { var type = typeof v; var basetype = { "string": true, &nbs...【阅读全文】
1. [代码]Simple JavaScript Inheritance (function(){ var initializing = false, fnTest = /xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/; // The base Class implementation (does nothing) this.Class = function(){}; // Create a new Class that in...【阅读全文】
点击(此处)折叠或打开<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><tit...【阅读全文】