随笔分类 -  Javascript, jQuery, Extjs

摘要:JavaScript FunctionsNot like c#, less parameter(s) can be passed to a function, the omitted one(s) would be undefinedThere isn’t method overloading like c#, the latter definition simply makes the former one disappear.arguments object can be used within a function to check the parametersUsing the arg 阅读全文
posted @ 2012-10-19 04:51 Jian, Li
摘要:JavaScript BasicsSpecial number valuesNote:10/0 doesn’t throw exception, it returns NaN insteadNaN doesn’t equal to NaNuse isNaN function to test NaNisNaN will coalesce string of numberFlow-control statements apply coalescing to booleanIn logical expression, the following values will be treated as f 阅读全文
posted @ 2012-10-19 02:53 Jian, Li
摘要:Study (1) Bindings and ObservablesUse jQuery to push data to DOM elements, without data bindingUse Knockout’s Observables to bind datadata.jsView Code var my = { }; //my namespacemy.sampleData = (function (my) { "use strict"; var data = { Products: [ { "ModelId": 1, ... 阅读全文
posted @ 2012-10-05 01:41 Jian, Li
摘要:<1>Basic concepts 0. Dom elemenet => jQuery Wrapper:function (menuTag, itemTag) { var menu = $(menuTag).data("tMenu"); var item = $(itemTag, menu.element); menu.enable(item); var imgUrl = $("#h_imgSaveUrl").val(); $("#btnSaveSetup>span>img").attr("sr 阅读全文
posted @ 2011-06-10 07:06 Jian, Li
只有注册用户登录后才能阅读该文。
posted @ 2011-02-17 13:31 Jian, Li
只有注册用户登录后才能阅读该文。
posted @ 2011-02-17 13:00 Jian, Li
只有注册用户登录后才能阅读该文。
posted @ 2011-02-13 05:44 Jian, Li