Project DescriptionJint is a script engine based on the Javascript language. Using Jint, developers can provide fully scriptable applications, execute .NET code without compiling, or create external configuration logic, using the most used script
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta
最近在研究Javascript發現了其中一些比較靈異的事情。有點讓人感到無語比如: alert(typeof( NaN == NaN));//結果為假。 alert(typeof( NaN != NaN));//結果為真。 嘿嘿,當然這個不是這篇文章要討論的!!開始我們的本文 首先,我們來看一下JS中sort()和reverse()這兩個函數的函數吧 reverse();這個函數是用來進行倒序,這個沒有什麼可說的,所謂倒序就是大的在前面,小的在後面。 比如: var array1
頁面使用代碼:<SCRIPT type=text/javascript>var tree = null;var root = new TreeNode('系統功能表');var fun0 = new TreeNode('軟體素材頁資訊管理');var funo = new TreeNode('風格類別管理', 'list.php', 'tree_node.gif', null,
先解釋一下什麼是閉包閉包就是內建函式通過某種方式使其可見範圍超出了其定義的範圍,這就產生了一個在其定義範圍內的閉包.我們先來瞭解一下內建函式(inner function)javascript是支援內建函式申明(inner function declaration)的程式設計語言,內建函式就是在另一個函數的內部定義,比如function outerFun(){ function innerFun(){ alert('hello');
用過一段時間prototype.js庫,該庫靈活小巧,使用該js庫,自己又開發了一些外掛程式,共用給大家使用:[javascript]/************************************************************************** * the file encoding:GBK * Created by tz@2008-3-3 20:26*******************
這個系列的第一部分介紹了"封裝",第二部分介紹了使用建構函式實現"繼承"。今天是最後一個部分,介紹不使用建構函式實現"繼承"。一、什麼是"非建構函式"的繼承?比如,現在有一個對象,叫做"中國人"。 var Chinese = { nation:'中國' };還有一個對象,叫做"醫生"。 var Doctor ={ career:'醫生&
需要在瀏覽器關閉(瀏覽器程式關閉及瀏覽器標籤關閉)時,使用非同步方法呼叫向伺服器端回傳一些資訊。HTML code<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html