datastore.js

来自「用最近的dojo1.2.1制作前端的ajax购书网站」· JavaScript 代码 · 共 46 行

JS
46
字号
/*	Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved.	Available via Academic Free License >= 2.1 OR the modified BSD license.	see: http://dojotoolkit.org/license for details*/if(!dojo._hasResource["dojox.wire.ml.DataStore"]){dojo._hasResource["dojox.wire.ml.DataStore"]=true;dojo.provide("dojox.wire.ml.DataStore");dojo.require("dijit._Widget");dojo.require("dojox.wire._base");dojo.declare("dojox.wire.ml.DataStore",dijit._Widget,{storeClass:"",postCreate:function(){this.store=this._createStore();},_createStore:function(){if(!this.storeClass){return null;}var _1=dojox.wire._getClass(this.storeClass);if(!_1){return null;}var _2={};var _3=this.domNode.attributes;for(var i=0;i<_3.length;i++){var a=_3.item(i);if(a.specified&&!this[a.nodeName]){_2[a.nodeName]=a.nodeValue;}}return new _1(_2);},getFeatures:function(){return this.store.getFeatures();},fetch:function(_6){return this.store.fetch(_6);},save:function(_7){this.store.save(_7);},newItem:function(_8){return this.store.newItem(_8);},deleteItem:function(_9){return this.store.deleteItem(_9);},revert:function(){return this.store.revert();}});}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?