亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? opmlstore.js

?? ajax框架原嗎,dojo目前很流行的,希望大家多多學(xué)習(xí)啊
?? JS
?? 第 1 頁 / 共 3 頁
字號:
			var args = dojox.data.tests.stores.OpmlStore.getDatasource("stores/geography.xml");			var opmlStore = new dojox.data.OpmlStore(args);			var d = new doh.Deferred();			function onComplete(items){				t.is(6, items.length);				t.assertTrue(opmlStore.isItem(items[0]));					var attributes = opmlStore.getAttributes(items[0]);				t.is(3, attributes.length);				for(var i = 0; i < attributes.length; i++){					t.assertTrue((attributes[i] === "text" || attributes[i] === "type" || attributes[i] === "children"));				}								d.callback(true);			}			//Get everything...			opmlStore.fetch({ onComplete: onComplete, onError: dojo.partial(dojox.data.tests.stores.OpmlStore.error, t, d)});			return d; //Object		},		function testReadAPI_getFeatures(t){			//	summary: 			//		Simple test of the getFeatures function of the store			//	description:			//		Simple test of the getFeatures function of the store			var args = dojox.data.tests.stores.OpmlStore.getDatasource("stores/geography.xml");			var opmlStore = new dojox.data.OpmlStore(args);			var features = opmlStore.getFeatures(); 			var count = 0;			for(i in features){				t.assertTrue((i === "dojo.data.api.Read") || (i === "dojo.data.api.Identity"));				count++;			}			t.assertTrue(count === 2);		},		function testReadAPI_fetch_patternMatch0(t){			//	summary: 			//		Function to test pattern matching of everything starting with Capital A			//	description:			//		Function to test pattern matching of everything starting with Capital A			var args = dojox.data.tests.stores.OpmlStore.getDatasource("stores/geography.xml");			var opmlStore = new dojox.data.OpmlStore(args);			var d = new doh.Deferred();			function completed(items, request){				t.is(3, items.length);				var valueArray = [ "Africa", "Asia", "Australia"];				t.assertTrue(dojox.data.tests.stores.OpmlStore.verifyItems(opmlStore, items, "text", valueArray));				d.callback(true);			}						opmlStore.fetch({query: {text: "A*"}, onComplete: completed, onError: dojo.partial(dojox.data.tests.stores.OpmlStore.error, t, d)});			return d; //Object		},		function testReadAPI_fetch_patternMatch1(t){			//	summary: 			//		Function to test pattern matching of everything with America in it.			//	description:			//		Function to test pattern matching of everything with America in it.						var args = dojox.data.tests.stores.OpmlStore.getDatasource("stores/geography.xml");			var opmlStore = new dojox.data.OpmlStore(args);						var d = new doh.Deferred();			function completed(items, request){				t.assertTrue(items.length === 2);				var valueArray = [ "North America", "South America"];				t.assertTrue(dojox.data.tests.stores.OpmlStore.verifyItems(opmlStore, items, "text", valueArray));				d.callback(true);			}						opmlStore.fetch({query: {text: "*America*"}, onComplete: completed, onError: dojo.partial(dojox.data.tests.stores.OpmlStore.error, t, d)});			return d; //Object		},		function testReadAPI_fetch_patternMatch2(t){			//	summary: 			//		Function to test exact pattern match			//	description:			//		Function to test exact pattern match						var args = dojox.data.tests.stores.OpmlStore.getDatasource("stores/geography.xml");			var opmlStore = new dojox.data.OpmlStore(args);						var d = new doh.Deferred();			function completed(items, request){				t.is(1, items.length);				t.assertTrue(opmlStore.getValue(items[0], "text") === "Europe");				d.callback(true);			}						opmlStore.fetch({query: {text: "Europe"}, onComplete: completed, onError: dojo.partial(dojox.data.tests.stores.OpmlStore.error, t, d)});			return d; //Object		},		function testReadAPI_fetch_patternMatch_caseInsensitive(t){			//	summary: 			//		Function to test exact pattern match with case insensitivity set.			//	description:			//		Function to test exact pattern match with case insensitivity set.						var args = dojox.data.tests.stores.OpmlStore.getDatasource("stores/geography.xml");			var opmlStore = new dojox.data.OpmlStore(args);						var d = new doh.Deferred();			function completed(items, request){				t.is(1, items.length);				t.assertTrue(opmlStore.getValue(items[0], "text") === "Asia");				d.callback(true);			}						opmlStore.fetch({query: {text: "asia"}, queryOptions: {ignoreCase: true}, onComplete: completed, onError: dojo.partial(dojox.data.tests.stores.OpmlStore.error, t, d)});			return d; //Object		},		function testReadAPI_fetch_patternMatch_caseSensitive(t){			//	summary: 			//		Function to test exact pattern match with case sensitivity set.			//	description:			//		Function to test exact pattern match with case sensitivity set.						var args = dojox.data.tests.stores.OpmlStore.getDatasource("stores/geography.xml");			var opmlStore = new dojox.data.OpmlStore(args);						var d = new doh.Deferred();			function completed(items, request){				t.is(0, items.length);				d.callback(true);			}						opmlStore.fetch({query: {text: "ASIA"}, queryOptions: {ignoreCase: false}, onComplete: completed, onError: dojo.partial(dojox.data.tests.stores.OpmlStore.error, t, d)});			return d; //Object		},		function testReadAPI_fetch_sortAlphabetic(t){			//	summary: 			//		Function to test sorting alphabetic ordering.			//	description:			//		Function to test sorting alphabetic ordering.					var args = dojox.data.tests.stores.OpmlStore.getDatasource("stores/geography.xml");			var opmlStore = new dojox.data.OpmlStore(args);						var d = new doh.Deferred();			function completed(items, request){				//Output should be in this order...				var orderedArray = [ "Africa", "Asia", "Australia", "Europe", "North America", "South America"];				t.is(6, items.length);				t.assertTrue(dojox.data.tests.stores.OpmlStore.verifyItems(opmlStore, items, "text", orderedArray));				d.callback(true);			}						var sortAttributes = [{attribute: "text"}];			opmlStore.fetch({sort: sortAttributes, onComplete: completed, onError: dojo.partial(dojox.data.tests.stores.OpmlStore.error, t, d)});			return d; //Object		},		function testReadAPI_fetch_sortAlphabeticDescending(t){			//	summary: 			//		Function to test sorting alphabetic ordering in descending mode.			//	description:			//		Function to test sorting alphabetic ordering in descending mode.					var args = dojox.data.tests.stores.OpmlStore.getDatasource("stores/geography.xml");			var opmlStore = new dojox.data.OpmlStore(args);						var d = new doh.Deferred();			function completed(items, request){				//Output should be in this order...				var orderedArray = [ "South America", "North America", "Europe", "Australia", "Asia", "Africa"					];				t.is(6, items.length);				t.assertTrue(dojox.data.tests.stores.OpmlStore.verifyItems(opmlStore, items, "text", orderedArray));				d.callback(true);			}						var sortAttributes = [{attribute: "text", descending: true}];			opmlStore.fetch({sort: sortAttributes, onComplete: completed, onError: dojo.partial(dojox.data.tests.stores.OpmlStore.error, t, d)});			return d; //Object		},		function testReadAPI_fetch_sortAlphabeticWithCount(t){			//	summary: 			//		Function to test sorting numerically in descending order, returning only a specified number of them.			//	description:			//		Function to test sorting numerically in descending order, returning only a specified number of them.					var args = dojox.data.tests.stores.OpmlStore.getDatasource("stores/geography.xml");			var opmlStore = new dojox.data.OpmlStore(args);						var d = new doh.Deferred();			function completed(items, request){				//Output should be in this order...				var orderedArray = [ "South America", "North America", "Europe", "Australia"					];				t.is(4, items.length);				t.assertTrue(dojox.data.tests.stores.OpmlStore.verifyItems(opmlStore, items, "text", orderedArray));				d.callback(true);			}						var sortAttributes = [{attribute: "text", descending: true}];			opmlStore.fetch({sort: sortAttributes, 							count: 4,							onComplete: completed,							onError: dojo.partial(dojox.data.tests.stores.OpmlStore.error, t, d)});			return d; //Object		},		function testReadAPI_functionConformance(t){			//	summary: 			//		Simple test read API conformance.  Checks to see all declared functions are actual functions on the instances.			//	description:			//		Simple test read API conformance.  Checks to see all declared functions are actual functions on the instances.			var testStore = new dojox.data.OpmlStore(dojox.data.tests.stores.OpmlStore.getDatasource("stores/geography.xml"));			var readApi = new dojo.data.api.Read();			var passed = true;			for(i in readApi){				if(i.toString().charAt(0) !== '_')				{					var member = readApi[i];					//Check that all the 'Read' defined functions exist on the test store.					if(typeof member === "function"){						var testStoreMember = testStore[i];						if(!(typeof testStoreMember === "function")){							passed = false;							break;						}					}				}			}			t.assertTrue(passed);		},		function testIdentityAPI_fetchItemByIdentity(t){			//	summary: 			//		Simple test of the fetchItemByIdentity function of the store.			//	description:			//		Simple test of the fetchItemByIdentity function of the store.						var args = dojox.data.tests.stores.OpmlStore.getDatasource("stores/geography.xml");			var opmlStore = new dojox.data.OpmlStore(args);						var d = new doh.Deferred();			function onItem(item){				t.assertTrue(item !== null);				d.callback(true);				}            opmlStore.fetchItemByIdentity({identity: "1", onItem: onItem, onError: dojo.partial(dojox.data.tests.stores.OpmlStore.error, t, d)});			return d;		},		function testIdentityAPI_fetchItemByIdentity_bad1(t){			//	summary: 			//		Simple test of the fetchItemByIdentity function of the store.			//	description:			//		Simple test of the fetchItemByIdentity function of the store.						var args = dojox.data.tests.stores.OpmlStore.getDatasource("stores/geography.xml");			var opmlStore = new dojox.data.OpmlStore(args);						var d = new doh.Deferred();			function onItem(item){				t.assertTrue(item === null);				d.callback(true);				}            opmlStore.fetchItemByIdentity({identity: "200", onItem: onItem, onError: dojo.partial(dojox.data.tests.stores.OpmlStore.error, t, d)});			return d;		},		function testIdentityAPI_fetchItemByIdentity_bad2(t){			//	summary: 			//		Simple test of the fetchItemByIdentity function of the store.			//	description:			//		Simple test of the fetchItemByIdentity function of the store.						var args = dojox.data.tests.stores.OpmlStore.getDatasource("stores/geography.xml");			var opmlStore = new dojox.data.OpmlStore(args);			var d = new doh.Deferred();			function onItem(item){				t.assertTrue(item === null);				d.callback(true);				}            opmlStore.fetchItemByIdentity({identity: "-1", onItem: onItem, onError: dojo.partial(dojox.data.tests.stores.OpmlStore.error, t, d)});			return d;		},		function testIdentityAPI_fetchItemByIdentity_bad3(t){			//	summary: 			//		Simple test of the fetchItemByIdentity function of the store.			//	description:			//		Simple test of the fetchItemByIdentity function of the store.						var args = dojox.data.tests.stores.OpmlStore.getDatasource("stores/geography.xml");			var opmlStore = new dojox.data.OpmlStore(args);			var d = new doh.Deferred();			function onItem(item){				t.assertTrue(item === null);				d.callback(true);				}            opmlStore.fetchItemByIdentity({identity: "999999", onItem: onItem, onError: dojo.partial(dojox.data.tests.stores.OpmlStore.error, t, d)});			return d;		},		function testIdentityAPI_getIdentity(t){			//	summary: 			//		Simple test of the fetchItemByIdentity function of the store.			//	description:			//		Simple test of the fetchItemByIdentity function of the store.						var args = dojox.data.tests.stores.OpmlStore.getDatasource("stores/geography.xml");			var opmlStore = new dojox.data.OpmlStore(args);						var d = new doh.Deferred();			function completed(items, request){				var passed = true;				for(var i = 0; i < items.length; i++){					console.log("Identity is: " + opmlStore.getIdentity(items[i]) + " count is : "+ i);					if(!(opmlStore.getIdentity(items[i]) == i)){						passed=false;						break;					}				}				t.assertTrue(passed);				d.callback(true);			}						//Get everything...			opmlStore.fetch({ onComplete: completed, onError: dojo.partial(dojox.data.tests.stores.OpmlStore.error, t, d), queryOptions: {deep: true}});			return d; //Object		},		function testIdentityAPI_functionConformance(t){			//	summary: 			//		Simple test identity API conformance.  Checks to see all declared functions are actual functions on the instances.			//	description:			//		Simple test identity API conformance.  Checks to see all declared functions are actual functions on the instances.			var testStore = new dojox.data.OpmlStore(dojox.data.tests.stores.CsvStore.getDatasource("stores/geography.xml"));			var identityApi = new dojo.data.api.Identity();			var passed = true;			for(i in identityApi){				if(i.toString().charAt(0) !== '_')				{					var member = identityApi[i];					//Check that all the 'Read' defined functions exist on the test store.					if(typeof member === "function"){						console.log("Looking at function: [" + i + "]");						var testStoreMember = testStore[i];						if(!(typeof testStoreMember === "function")){							passed = false;							break;						}					}				}			}			t.assertTrue(passed);		}	]);}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美日产一区| 欧美日韩免费视频| 日本一区二区在线不卡| 国产成人综合在线| 成人欧美一区二区三区视频网页 | 欧美一级高清片| 日本免费新一区视频| 精品久久久久一区| 粉嫩av一区二区三区在线播放| 日韩伦理免费电影| 欧美日韩一区二区三区视频| 日韩精品一区第一页| 精品电影一区二区| 成人av小说网| 婷婷丁香久久五月婷婷| 精品成人在线观看| 99视频在线精品| 偷窥国产亚洲免费视频| 精品国产污网站| 97超碰欧美中文字幕| 天天操天天综合网| 国产欧美日韩在线看| 在线免费亚洲电影| 精品一区二区三区的国产在线播放 | 韩日av一区二区| 国产欧美精品一区| 在线观看视频一区| 激情五月婷婷综合| 一区二区三区日韩精品| 精品国产一区二区三区不卡| 日本韩国精品一区二区在线观看| 人人爽香蕉精品| 国产精品久久久久7777按摩| 欧美精品第1页| 成人午夜av在线| 日韩国产欧美三级| 国产精品久久三| 91麻豆精品国产综合久久久久久| 成人丝袜高跟foot| 日韩电影在线一区二区三区| 国产精品青草久久| 日韩天堂在线观看| 色婷婷av久久久久久久| 国产真实乱子伦精品视频| 亚洲成年人网站在线观看| 国产农村妇女毛片精品久久麻豆| 欧美精选一区二区| 99国产精品国产精品久久| 极品少妇一区二区三区精品视频 | 精品国产成人在线影院| 在线看国产一区二区| 国产精品一区专区| 日韩精品1区2区3区| 午夜av一区二区三区| 国产精品视频免费看| 欧美www视频| 欧美日韩免费高清一区色橹橹| www.在线欧美| 国产真实乱对白精彩久久| 免费视频最近日韩| 日韩中文欧美在线| 亚洲成人免费视频| 亚洲永久免费av| 亚洲日本一区二区| 国产精品卡一卡二卡三| 欧美激情一区二区在线| 精品久久人人做人人爽| 日韩午夜激情免费电影| 555www色欧美视频| 欧美男男青年gay1069videost | 色呦呦国产精品| 91小视频在线免费看| av网站免费线看精品| eeuss鲁一区二区三区| 国产.欧美.日韩| 盗摄精品av一区二区三区| 国产成人亚洲综合色影视| 国产精品538一区二区在线| 久久不见久久见免费视频1| 免费久久精品视频| 久久国产麻豆精品| 国产精品亚洲一区二区三区妖精| 另类成人小视频在线| 捆绑变态av一区二区三区| 视频一区欧美精品| 麻豆91免费观看| 韩国女主播成人在线观看| 国产精品一二三四区| av成人免费在线观看| 91免费版在线| 欧美天天综合网| 欧美一区二区美女| 久久综合五月天婷婷伊人| 久久久影视传媒| 日本一区二区三区在线观看| 中文字幕中文乱码欧美一区二区| 综合网在线视频| 亚洲一卡二卡三卡四卡五卡| 香蕉成人啪国产精品视频综合网| 日韩精品一卡二卡三卡四卡无卡| 久久er99热精品一区二区| 国产精品一区二区x88av| 成人97人人超碰人人99| 欧美性猛片aaaaaaa做受| 欧美一级日韩一级| 国产三级欧美三级日产三级99| 国产精品久久久久影院色老大| 亚洲乱码中文字幕| 麻豆视频一区二区| 日韩一区二区三区电影| 久久一区二区视频| 亚洲视频免费在线| 日本欧美大码aⅴ在线播放| 国产精品一区在线观看你懂的| 91女神在线视频| 日韩久久免费av| 亚洲欧美自拍偷拍| 男人的j进女人的j一区| 福利一区二区在线| 欧美日韩大陆一区二区| 久久久久久久综合狠狠综合| 一区二区不卡在线播放 | 亚洲精品欧美激情| 欧美aaaaaa午夜精品| 成人午夜在线视频| 制服丝袜中文字幕一区| 亚洲国产精品高清| 日本不卡一二三| 99精品欧美一区二区三区综合在线| 56国语精品自产拍在线观看| 国产精品卡一卡二| 精品一区二区三区香蕉蜜桃| 91豆麻精品91久久久久久| 欧美电视剧在线观看完整版| 亚洲视频在线观看三级| 国内久久婷婷综合| 欧美在线观看视频一区二区| 国产欧美日韩不卡| 久久精品国产一区二区| 欧美少妇一区二区| 国产精品久久久久久久久久免费看| 日韩精品五月天| 一本到一区二区三区| 欧美激情在线看| 久久精品国产亚洲一区二区三区| 欧美亚洲另类激情小说| 国产欧美日韩亚州综合| 久久精品国产77777蜜臀| 欧美日韩黄视频| 亚洲精品日韩一| 色一情一乱一乱一91av| 中文文精品字幕一区二区| 久久超碰97人人做人人爱| 欧美一区二区福利视频| 亚洲国产中文字幕在线视频综合| aaa欧美大片| 国产精品免费av| 国产乱码精品一区二区三区av| 日韩一区二区免费电影| 亚洲.国产.中文慕字在线| 欧美午夜免费电影| 亚洲国产成人91porn| 欧美亚洲综合色| 成人福利在线看| 国产亚洲精品中文字幕| 国产成人免费视频网站高清观看视频| 日韩一区二区三区免费看| 天堂午夜影视日韩欧美一区二区| 欧美日韩在线播放三区四区| 一二三区精品视频| 欧美日韩一级大片网址| 天堂蜜桃一区二区三区| 69精品人人人人| 欧美aⅴ一区二区三区视频| 欧美白人最猛性xxxxx69交| 韩国av一区二区三区在线观看| 精品久久久久久久一区二区蜜臀| 国内精品视频一区二区三区八戒| 精品1区2区在线观看| 国产黄色成人av| 成人免费在线观看入口| 一本一道久久a久久精品| 亚洲自拍偷拍av| 91精品国产综合久久久久久漫画| 奇米精品一区二区三区在线观看一 | 在线观看不卡一区| 亚洲精品欧美二区三区中文字幕| 欧美午夜视频网站| 美女被吸乳得到大胸91| 亚洲国产精品成人久久综合一区| 暴力调教一区二区三区| 亚洲一区二区五区| 欧美一区二区三区白人| 国产福利电影一区二区三区| 综合欧美亚洲日本| 欧美猛男gaygay网站| 久久精品久久精品| 国产精品免费视频网站| 色就色 综合激情| 久久aⅴ国产欧美74aaa|