1. [文件] yDate.js/*** | yDate.js | Copyright (c) 2013 yao.yl | email: redrainyi@126.com | Date: 2012-09-03 |*/(function(global) { var objectPrototypeT....
分类:
Web程序 时间:
2014-08-11 20:36:43
阅读次数:
362
事件对象——兼容处理1 /* 2 * 功能: 事件对象兼容3 * 参数: 表示常规浏览器的事件对象e4 */5 function getEvent(e) {6 7 // 如果存在e存在,直接返回,否则返回window.event8 return e || window.even...
分类:
其他好文 时间:
2014-08-11 20:35:02
阅读次数:
186
//Author: default7
function initCopy($o) {
var text = $o.html();
if (text) {
$o.attr('title', '点击复制 ' + text);
new ZeroClipboard($o).on("copy", function (event) {
...
分类:
编程语言 时间:
2014-08-11 17:57:52
阅读次数:
250
grid.js
Ext.onReady(function() {
var gridStore = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({
url: 'grid.asp'
}),
reader: new Ext.data.JsonReader({
root: 'data',
totalPrope...
分类:
其他好文 时间:
2014-08-11 17:52:52
阅读次数:
226
按以下布局放置好unity3d的各个组件,设置好渲染、位置、光源、大小等麦好的AI乐园博客所有内容是原创,如果转载请注明来源http://blog.csdn.net/myhaspl/编写下面代码:#pragma strictfunction Start () { this.Start();}function Update () { this.transform.Rotate(1,1,-1)...
分类:
其他好文 时间:
2014-08-11 17:47:52
阅读次数:
241
/* JS checkbox 全选 全不选 Html中checkbox: "/> 以下方法各有优劣,使用时根据情况而定.*///全选(方法一:each 循环)function checkAll() { $.each($("input[name=cbx]"), func...
分类:
Web程序 时间:
2014-08-11 17:45:22
阅读次数:
182
[来自: Backbone.js 开发秘笈 第6章]Template 用法:通过 Underscore.js 提供的 _.template() 方法,我们可使用 包含js代码;使用 输出变量值;使用 输出转义后的变量值。(function ($) { //define ----------...
分类:
Web程序 时间:
2014-08-11 17:29:52
阅读次数:
274
1 var SchedulerPauseResumeTest = cc.Layer.extend({ 2 ctor : function(){ 3 this._super(); 4 //添加监听 5 6 this.schedule(this.onT...
分类:
其他好文 时间:
2014-08-11 17:20:42
阅读次数:
321
html代码 js代码$.get("get.php",{username:$("#username").val(),content:$("#content").val(),password:$("#password").val()},function(data,textSta...
分类:
Web程序 时间:
2014-08-11 17:16:12
阅读次数:
262
/*! iScroll v5.1.2 ~ (c) 2008-2014 Matteo Spinelli ~ http://cubiq.org/license */(function (window, document, Math) { //请求动画帧var rAF = window.reques...
分类:
Web程序 时间:
2014-08-11 17:15:02
阅读次数:
311