;(function ($) { $.fn.extend({ 'nav' : function (color) { $(this).find('.nav').css({ 'list-style' : 'none', 'margin' : 0, 'padding' : 0, ...
分类:
其他好文 时间:
2014-07-07 12:26:05
阅读次数:
284
$.extend(target,prop1,propN)用一个或多个其他对象来扩展一个对象,返回这个被扩展的对象。这是简化继承的主要工具。返回值:Object参数:target (Object): 要扩展的对象prop1 (Object): 要与第一个对象合并的对象propN (Object): (...
分类:
其他好文 时间:
2014-07-06 19:27:50
阅读次数:
182
这次来了解下jQuery的extend吧,作为菜鸟的我学艺不精,看插件时经常看到extend函数的使用,从网上看到一篇不错的介绍,特地转载过来留给自己收藏学习:--------------------------------------------------------------------.....
分类:
Web程序 时间:
2014-07-06 18:59:39
阅读次数:
220
var itemsPerPage = 20;
var combo;
//创建数据源store
Ext.define('recordStore', {
extend : 'Ext.data.Store',
// autoLoad : {
// start : 0,
// limit : itemsPerPage
// },
start : 0,
limit :...
分类:
Web程序 时间:
2014-07-05 10:53:34
阅读次数:
412
$.extend({loading:function(){$("").css({display:"block",width:"100%",height:$(document.body).height()}).appendTo("body");$("").html("正在提交数据,请稍候。。。").a...
分类:
其他好文 时间:
2014-07-03 00:32:48
阅读次数:
522
jquery的extend方法的用法1. [代码][JavaScript]代码 010304 05 06 jquery继承07 08 09 对象继承{name:"ws",age:"23"}11 12 13 全局方法继承$.hello()14 ...
分类:
Web程序 时间:
2014-07-02 23:55:46
阅读次数:
349
一、创建Model模型
Extjs4.10提供了两种方法来创建Model模型,也就是创建类
方法一:
Ext.define('person',{
extend:'Ext.data.Model' //必须继承类
fields:[
{name:'name',type:'...
分类:
Web程序 时间:
2014-07-02 16:43:16
阅读次数:
195
在现有类和结构体的类型基础上,扩展新的功能。 语法:extension SomeType{// new functionality to add to SomeType goes here}An extension can extend an existing type to make itadopt one or more protocols.Where this is the case,the...
分类:
其他好文 时间:
2014-07-02 07:36:22
阅读次数:
244
添加一个新的功能[javascript]view plaincopyExt.grid.PageRowNumberer=Ext.extend(Ext.grid.RowNumberer,{width:40,renderer:function(value,cellmeta,record,rowIndex,...
分类:
Web程序 时间:
2014-07-01 18:48:17
阅读次数:
217
跟我一起学extjs5(05--主界面上加入顶部和底部区域)
这一节为主界面加一个顶部区域和底部区域。一个管理系统的界面可以粗分为顶部标题部分、中间数据展示和处理的部分、底部备注和状态部分。
在增加这二个区域之前,我们先在MainModel.js中加入一些数据。
Ext.define('app.view.main.MainModel', {
extend : 'Ext.ap...
分类:
Web程序 时间:
2014-07-01 07:19:56
阅读次数:
200