這段時間一直在“研究”(不太好意思用這個詞)WCFService,覺得挺好玩的。下面把一個用JavaScript調用WCFService的執行個體分享給大家。註:為貪圖省事,WCFService與調用者均在一個網站項目裡。HostService方式也採用了最普通的IIS承載。1、建立一個介面,用於條件約束服務提供的方法。Code highlighting produced by Actipro CodeHighlighter
google 提供訪問統計,並給出使用 google 統計的 javascript 代碼。這部分代碼已經更改了幾次了,最近的版本是非同步提交,也就是不影響你的網站頁面顯示速度,先顯示你的網頁,再後台悄悄提交一個用於統計的 http request。在 https://www.google.com/analytics/settings/check_status_profile_handler?id=21886899頁面中, google 給出如下代碼: var _gaq = _gaq || []
Definition and Usage定義與用法The onmousemove event occurs when the mouse pointer is moved.當滑鼠移動時觸發onmousemove事件Syntax文法onmousemove="所要執行的代碼"Parameter參數Description注釋SomeJavaScriptCode所要執行的代碼Required. Specifies a JavaScript to be executed when the event
Definition and Usage定義與用法The onmouseup event occurs when a mouse button is released.當滑鼠按鍵鬆開時觸發onmouseup事件Syntax文法onmouseup="所要執行的代碼"Parameter參數Description注釋SomeJavaScriptCode所要執行的代碼Required. Specifies a JavaScript to be executed when the event
amCharts是免費試用的,不過會在上面加上“amchart by amcharts.com”。如果購買序號也是挺貴的,單機版也需要99歐元。由於是js版,破解應該沒什麼問題,現在我就把破解過程記錄下來。開啟amcharts.js,js是本壓縮過的,首先到http://box.inote.cc/這個網站解壓縮。找到“amchart by amcharts.com”關鍵字,由於這個字沒找到,通過找長145寬20,找到一下代碼: 1 drb: function() { 2
CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><script language="javascript"> var empty = {}; var point = { x: 0, y: 0 }; var cirle = { x: point.x, y: point.y, raduis:
In order to explain how the createDelegate function works in the last post, we have to understand JavaScript closures and Function.apply(). The apply() method is the easiest subject to tackle, so we'll start