flymis/WebRoot/dojojs/src/data/Write.js
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.data.Write");
dojo.require("dojo.lang.declare");
dojo.require("dojo.data.Read");
dojo.require("dojo.experimental");
/* summary:
* This is an abstract API that data provider implementations conform to.
* This file defines methods signatures and intentionally leaves all the
* methods unimplemented.
*/
dojo.experimental("dojo.data.Write");
dojo.declare("dojo.data.Write", dojo.data.Read, {
newItem:
function(/* object? */ keywordArgs) {
/* summary:
* Returns a newly created item. Sets the attributes of the new
* item based on the keywordArgs provided.
*/
/* exceptions:
* Throws an exception if *keywordArgs* is a string or a number or
* anything other than a simple anonymous object.
* examples:
* var kermit = store.newItem({name: "Kermit"});
*/
var newItem;
dojo.unimplemented('dojo.data.Write.newItem');
return newItem; // item
},
deleteItem:
function(/* item */ item) {
/* summary:
* Deletes an item from the store.
*/
/* exceptions:
* Throws an exception if *item* is not an item (if store.isItem(item)
* returns false).
* examples:
* var success = store.deleteItem(kermit);
*/
dojo.unimplemented('dojo.data.Write.deleteItem');
return false; // boolean
},
set:
function(/* item */ item, /* attribute || string */ attribute, /* almost anything */ value) {
/* summary:
* Sets the value of an attribute on an item.
* Replaces any previous value or values.
后面还有 109 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。