Introduction to the Reactive Extensions for JavaScript文章集合(收集貼)

該系列文章是由Matthew Podwysocki撰寫,並發表在code better上的。IntroductionCreating ObservablesCreating ObserversjQuery IntegrationComposing CallbacksFrom Blocking to AsyncWikipedia LookupComposing DeeperBing Maps and Twitter MashupDrag and DropjQuery Live Event

js控制文字框只能輸入數字(小技巧)

好久不做頁面忘怎麼寫了方法一:<INPUT TYPE='text' NAME=text onkeypress="a()"><script language=javascript>...function a()...{ var k = window.event.keyCode;if ( (k > 47 && k < 58) || k!=45

Javascript小技巧(3)

//內建的預覽列印 WebBrowser.ExecWB(1,1) 開啟  Web.ExecWB(2,1) 關閉現在所有的IE視窗,並開啟一個新視窗  Web.ExecWB(4,1) 儲存網頁  Web.ExecWB(6,1) 列印  Web.ExecWB(7,1) 預覽列印  Web.ExecWB(8,1) 列印版面設定  Web.ExecWB(10,1) 查看頁面屬性  Web.ExecWB(15,1) 好像是撤銷,有待確認  Web.ExecWB(17,1) 全選  Web.ExecWB(2

JS DatePicker: jscalendar-1.0___v1.51 (JS日期選取器)

http://files.cnblogs.com/wucg/jscalendar-1.0___v1.51.zipJS DatePicker: jscalendar-1.0___v1.51from:http://sourceforge.net/projects/jscalendar/http://files.cnblogs.com/wucg/jscalendar-1.0___v1.51.zipQuick startupInstalling the calendar used to be

物件導向js javascript

Code highlighting produced by Actipro CodeHighlighter

javascript class 定義

Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Method 1:var TestClass=function(){    this.fun1=function(){return "我是中國人";};    this.field1="這是欄位";    this.i1=10;    this.i2=20;    this.sum=function()

javascript ECMA-262概述

擴充閱讀:1.https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide2.https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference3.http://extjs.com   ECMA-262的保留字  ECMAScript定義了一套保留字,保留字在某種意義上是為了將來的而保留的單詞。因此,保留字不能被用作變數名或函數名。ECMA-262第3版中保留字的完整列表如下:  a

Closure Compiler is a JavaScript optimizing compiler.

http://code.google.com/p/closure-compiler/ http://stackoverflow.com/questions/28932/best-javascript-compressorGoogle released Closure Compiler which seems to be generating the smallest files so far as seen hereand herePrevious to that the various

iClient for Javascript入門

這玩意的背景閑話不說,先整一個出圖的入門範例。為:http://support.supermap.com.cn/ProductCenter/DownloadCenter/DownloadPage.aspx?id=59解壓後目錄如下:1、拷貝需要引用的資源在本機建立一個檔案夾,GettingStarted,然後把剛剛前面解壓的檔案夾中的resource、libs檔案夾拷貝到GettingStarted檔案夾中。2、在GettingStarted檔案夾下建立一個GettingStarted.html

iClient for Javascript常用對象

前面《iClient for Javascript入門》介紹了一個入門範例,初步介紹了如何使用iClient for Javascript,下面詳細介紹一下範例中用到的對象。1、Map地圖類,用於執行個體化map類建立一個新地圖,實現地圖在用戶端的互動操作,可通過給建立的map添加圖層和控制項來擴充應用,

JS屏蔽滑鼠右鍵的兩種方法(小技巧)

<html><head><title>屏蔽滑鼠右鍵</title></head><body oncontextmenu=self.event.returnvalue=false>第一種方法:在body標籤裡加上oncontextmenu=self.event.returnvalue=false;<br><script language="javascript"><!--function

用javascript進行拖拽2)

你首先要聲明一個evnet對象.不論何時你移動滑鼠/點擊/按鍵等等,會對應一個event的事件.在Internet Explorer裡event是全域變數,會被儲存在window.event裡. 在firefox中,或者其他瀏覽器,event事件會被相應的自訂函數擷取.當我們將mouseMove函數賦值於document.onmousemove,mouseMove會擷取滑鼠移動事件. (ev = ev || window.event)

用javascript進行拖拽3)

運行代碼框<script>Number.prototype.NaN0=function(){return isNaN(this)?0:this;}var iMouseDown = false;var dragObject = null;var curTarget = null;function makeDraggable(item){if(!item) return;item.onmousedown = function(ev){dragObject =

用javascript進行拖拽4)

運行代碼框<script>var iMouseDown = false;var dragObject = null;Number.prototype.NaN0=function(){return isNaN(this)?0:this;}// Demo 0 variablesvar DragDrops = [];var curTarget = null;var lastTarget = null;function makeDraggable(item){if(!item)

Javascript小技巧(2)

 //各種尺寸   s  +=  "\r\n網頁可見地區寬:"+  document.body.clientWidth;     s  +=  "\r\n網頁可見地區高:"+  document.body.clientHeight;     s  +=  "\r\n網頁可見地區高:"+  document.body.offsetWeight  +"  (包括邊線的寬)";     s  +=  "\r\n網頁可見地區高:"+  document.body.offsetHeight  +"  (包

Javascript小技巧(1)

 事件來源對象   event.srcElement.tagName   event.srcElement.type   捕獲釋放   event.srcElement.setCapture();    event.srcElement.releaseCapture();    事件按鍵   event.keyCode   event.shiftKey   event.altKey   event.ctrlKey   事件傳回值   event.returnValue   滑鼠位置   even

Javascript小技巧(6)

//自訂提示條 <a href="#" title="這是提示">tip</a> <script Language="JavaScript"> //***********預設設定定義.********************* tPopWait=50;//停留tWait豪秒後顯示提示。 tPopShow=5000;//顯示tShow豪秒後關閉提示 showPopStep=20; popOpacity=99; //***************內部變數定義***

Javascript小技巧(5)

//可編輯SELECT <input type=text name=re_name style="width:100px;height:21px;font-size:10pt;"><span style="width:18px;border:0px solid red;"><select name="r00" style="margin-left:-100px;width:118px; background-color:#FFEEEE;" onChange="doc

用javascript進行拖拽1)

本文譯自:http://www.webreference.com/programming/javascript/mk/column2/index.html轉自:http://www.blueidea.com/tech/web/2006/3791.asp所有著作權歸原文所有Javascript的特點是dom的處理與網頁效果,大多數情況我們只用到了這個語言的最簡單的功能,比如製作圖片輪播/網頁的tab等等,這篇文章將向你展示如何在自己的網頁上製作拖拽.有很多理由讓你的網站加入拖拽功能,最簡單的一個是

JavaScript調用系統exe檔案

今天做了一個測試,源碼是相當簡單的,地球人中的編程人員是都知道寫的,可是有個地方卻始終是被忽略的,IE的安全層級要更改,否則會禁止跳出你所調用的系統exe檔案,核心的說了不多說了~~~~~~~~源碼如下:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http:

總頁數: 3271 1 .... 353 354 355 356 357 .... 3271 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.