文件名称:linq.js_ver 2.2.0.2
文件大小:266KB
文件格式:ZIP
更新时间:2022-02-12 10:37:55
linq linq.js js where
var jsonArray = [ { "user": { "id": 100, "screen_name": "d_linq" }, "text": "to objects" }, { "user": { "id": 130, "screen_name": "c_bill" }, "text": "g" }, { "user": { "id": 155, "screen_name": "b_mskk" }, "text": "kabushiki kaisha" }, { "user": { "id": 301, "screen_name": "a_xbox" }, "text": "halo reach" } ] // ["b_mskk:kabushiki kaisha", "c_bill:g", "d_linq:to objects"] var queryResult = Enumerable.From(jsonArray) .Where(function (x) { return x.user.id < 200 }) .OrderBy(function (x) { return x.user.screen_name }) .Select(function (x) { return x.user.screen_name + ':' + x.text }) .ToArray(); // shortcut! string lambda selector var queryResult2 = Enumerable.From(jsonArray) .Where("$.user.id < 200") .OrderBy("$www.cnzhaotai.com/ .user.screen_name") .Select("$.user.screen_name + ':' + $.text") .ToArray();
【文件预览】:
linq.js_ver 2.2.0.2
----reference.htm(82KB)
----jquery.linq-vsdoc.js(44KB)
----jquery.linq.js(91KB)
----linq.js(90KB)
----test()
--------arrayEnumerable.js(4KB)
--------convert.js(3KB)
--------projection.js(4KB)
--------functional.js(1KB)
--------enumerable.js(5KB)
--------testrunner.htm(2KB)
--------ordering.js(3KB)
--------paging.js(4KB)
--------testrunner.min.htm(2KB)
--------action.js(2KB)
--------set.js(4KB)
--------testrunner.jquery.min.htm(2KB)
--------testrunner.jquery.htm(2KB)
--------errorHandling.js(916B)
--------qunit.css(3KB)
--------qunit.js(28KB)
--------grouping.js(4KB)
--------join.js(2KB)
--------aggregate.js(2KB)
--------dictionary.js(4KB)
--------jquery-1.4.1.min.js(70KB)
----sample()
--------tutorial.htm(6KB)
--------script.wsf(742B)
--------LinqJS.cs(13KB)
----bindings()
--------linq.rx.js(2KB)
--------RxVSDocGenerator()
--------linq.jquery.js(603B)
----snippets()
--------EnumerableRange.snippet(717B)
--------Action2.snippet(709B)
--------Func0.snippet(489B)
--------EnumerableFrom.snippet(585B)
--------Action0.snippet(480B)
--------jQueryEnumerableRange.snippet(732B)
--------Func1.snippet(622B)
--------Action1.snippet(613B)
--------Func2.snippet(718B)
--------jQueryEnumerableFrom.snippet(600B)
----linq-vsdoc.js(43KB)
----linq.min.js(25KB)
----jquery.linq.min.js(26KB)
----ReadMe.txt(8KB)
----json2.js(3KB)