摘要: Hello RhinoFirst, look at my examples' file structure:RhinoTest lib js.jar scripts hello.js file1.js run.batMy first rhino example is hello.js:for (var i = 0; i < arguments.length; i++) { print(... 阅读全文
posted @ 2009-05-26 15:43 三生石上(FineUI控件) 阅读(406) 评论(0) 推荐(0) 编辑
摘要: Rhino is an open-source implementation of JavaScript written entirely in Java. It is typically embedded into Java applications to provide scripting to end users.The rhino shell provides a simple way t... 阅读全文
posted @ 2009-05-20 14:12 三生石上(FineUI控件) 阅读(510) 评论(0) 推荐(0) 编辑
摘要: Fast string concatenationWe always use + to concatenate small strings into a large one, which is considered to be a good practice.But there will be a major hit on performance if you do many string con... 阅读全文
posted @ 2009-05-18 15:07 三生石上(FineUI控件) 阅读(908) 评论(0) 推荐(0) 编辑
摘要: JavaScript doesn’t have block scopeBlock doesn’t have scope in javascript, only function has scope.for(var i = 0; i < 2; i ++) { } i; // 2If you want to create scope, use anonymous fun... 阅读全文
posted @ 2009-05-15 13:25 三生石上(FineUI控件) 阅读(646) 评论(0) 推荐(0) 编辑
摘要: Is undefined a reserved wordIt seems like so, but actually it doesn’t.var undefined = 'Hello'; undefined; // 'Hello'This may surprise you, but it does work well. undefined is just a pre-defined ... 阅读全文
posted @ 2009-05-14 13:40 三生石上(FineUI控件) 阅读(762) 评论(0) 推荐(0) 编辑
摘要: Always specify the second argument - parseIntparseInt converts a string to an int number, the syntax is:parseInt(str, [radix])The second argument is optional, which specify the radix of the first argu... 阅读全文
posted @ 2009-05-13 14:41 三生石上(FineUI控件) 阅读(1106) 评论(0) 推荐(0) 编辑
摘要: It will be annoying to convert a word document to wiki page manually. Some people should have to face this problem and solve this problem.I google the internet andfindthis useful online tools:http://t... 阅读全文
posted @ 2009-05-13 11:18 三生石上(FineUI控件) 阅读(644) 评论(0) 推荐(0) 编辑
摘要: This is a step by step tutorial on how to config FCKeditor work together with ASPX。Step 1:Download FCKeditor_2.6.4 & FCKeditor.Net_2.6.3Step 2:1. Create a new web application called ‘TestFCK... 阅读全文
posted @ 2009-05-12 15:48 三生石上(FineUI控件) 阅读(766) 评论(2) 推荐(0) 编辑
摘要: Produce boolean value from other typesAll objects in JavaScript can be converted to boolean implicitly, look at these examples:0 == false; // true1 == true; // true'' == false // truenull == false // ... 阅读全文
posted @ 2009-05-12 14:30 三生石上(FineUI控件) 阅读(2277) 评论(0) 推荐(0) 编辑
摘要: I find three ways to center an image in a div:<style type="text/css"> .container1 { border: solid 1px #666; width: 100px; height: 100px; } .container1 img { margin: 42px 0px 0px 42px; /* (100-16... 阅读全文
posted @ 2009-05-11 16:36 三生石上(FineUI控件) 阅读(512) 评论(0) 推荐(1) 编辑
摘要: We all know input markup in XHTML, which can be used to create TextBox, Button, CheckBox, RadioButton, HiddenField etc via type attribute. There are three types of button, one is used to submit form, ... 阅读全文
posted @ 2009-05-11 15:18 三生石上(FineUI控件) 阅读(386) 评论(0) 推荐(0) 编辑
摘要: I described how to use jStore as a client-side persistent storage in my last post. The jStore manage a number of different storage engines, such as gears and flash objects. But they all need additional downloads. The IE browser has provide a mechanism called userdata behavior to store max 128kb data a page, 1024kb a domain. This is a portion of DHTML that suppoted by IE5 or later. Refer to this article: userData Behavior. 阅读全文
posted @ 2009-05-11 11:35 三生石上(FineUI控件) 阅读(547) 评论(0) 推荐(0) 编辑
摘要: In my opinion, there are two big things in Javascript's world - Closure and Prototype. Question 1. What does Prototype do in JavaScript? In a single word, it's a feature that aimed at reducing code duplication. We all know in computer world there is a famous philosophy - Don't Repeat Yourself. In classic object-oriented languages such as c++/c#/java, we have inheritance to encapsulate some common methods into a super class to reduce code lines. But in JavaScript, there is no concept o 阅读全文
posted @ 2009-05-07 15:17 三生石上(FineUI控件) 阅读(508) 评论(2) 推荐(0) 编辑
摘要: Today, hans notify me that there is a persistent storage solution in client-side in the form of jQuery plug-in called jStore. 阅读全文
posted @ 2009-05-07 11:30 三生石上(FineUI控件) 阅读(659) 评论(0) 推荐(0) 编辑
摘要: AOP stands for Aspect-oriented programming. I think the main point of this technology is the ability to add code before or after a function execution. After some digging on the internet, i write my implement of AOP in JavaScript. 阅读全文
posted @ 2009-05-06 13:20 三生石上(FineUI控件) 阅读(960) 评论(1) 推荐(0) 编辑