Time of Update: 2018-12-07
首先開啟ietester的DebugBar,切換到指令碼標籤,可以看到最下面一欄有個輸入框,注釋寫著”// Javascript 控制台”,var s = document.createElement("script");s.src = "http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js";s.type= "text/javascript";if(document.all){
Time of Update: 2018-12-07
代碼Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><script type="text/javascript">//意味著執行個體化了一個Object對象 var class1 = {}; class1.p1 = 1; class1.p2 =
Time of Update: 2018-12-07
作者: Fenng 原文網址: http://www.dbanotes.net/web/high_performance_web_site.html 對於前端最佳化技術,我之前根據已經從 14 條增加到 34 條的Exceptional Performance 做了一份筆記:Web 前端最佳化最佳實務之 內容篇 Web 前端最佳化最佳實務之 Server 篇 Web 前端最佳化最佳實務之 Cookie 篇 Web 前端最佳化最佳實務之 CSS 篇 Web 前端最佳化最佳實務之
Time of Update: 2018-12-07
CodeCode highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-07
在DataGrid的ItemCreated事件裡面找到你的DataList控制項 然後用DataList1.ItemDataBound += new DataListItemEventHandler(DataList1_ItemDataBound);的方法添加事件區別主要在於這兩個事件的執行方式 在頁面呈現的時候: ItemCreated建立一個ITEM,ItemDataBound為其綁定資料,
Time of Update: 2018-12-07
break表示跳出迴圈,continue表示結束本次迴圈 樣本程式如下: #include "stdio.h" void main() { int n,m; for(n=1;n<=10;n++) /*這個迴圈輸出1 2 3 4, 在n是5的時候迴圈退出*/ { if(n==5) break; printf(" %d",n); } printf("\n");
Time of Update: 2018-12-07
文章目錄 一些技術細節純Canvas開發和DIV + CSS方式的對比
Time of Update: 2018-12-07
在SuSE10上,源碼編譯安裝nodejs0.6.10,使用 ./configure --prefix=/usr/local/, 提示:Checking for openssl: not foundChecking for function SSL_library_init: not foundChecking for header openssl/crypto.h: not found/usr/local/src/node-v0.6.10/wscript:374: error: Could
Time of Update: 2018-12-07
--用遊標實現的累計金額問題--聲明2個變數declare @id int declare @num floatdeclare @num2 floatdeclare @sum floatCREATE TABLE [dbo].[a] ( [id] [int] IDENTITY (1, 1) NOT NULL , [num] [float] NULL , [num2] [float] NULL ) ON [PRIMARY]GOset @sum =0
Time of Update: 2018-12-07
//全選function chkall(obj,pre){ var arr = document.getElementsByTagName("input"); for(var i=0;i<arr.length;i++) { if(arr[i].type =="checkbox" && arr[i].id.indexOf(pre) != -1 && !arr[i].disabled) {
Time of Update: 2018-12-07
現在做跨域,說不會jsonp都不好意思。 那麼getJSON 是可以做jsonp的 getJSON("xx.com?jsoncallback=?",function(){ xx00 }); jq只有在url裡發現有 =? 的時候,才會啟動jsonp模式,然後把後面的回呼函數賦 給 一個 臨時 的全域變數 jsonp+new DATE(); 然後用這個全域變數替換了 =? 中的 ?然後發送請求。 注意,jsoncallback=? 這裡的jsoncallback不是必須的,
Time of Update: 2018-12-07
【串連】本文轉自豆瓣社區http://www.douban.com/note/225494734/1、http://www.html5rocks.com/en/tutorials/webgl/typed_arrays/這篇寫得比我好。2、至於一些很方便庫,可以直接看aurora.js這個項目,為瞭解析音頻檔案,這個項目下了很大功夫...https://github.com/ofmlabs/aurora.js【前言】JS其實是眾所周知的弱類型語言。所以一般來說不屬於嚴肅編程領域,直到近年才受到關注
Time of Update: 2018-12-07
現在的canvas開發,沒有成熟的工具,如果要做動畫,就要寫原始指令碼來實現,蛋蛋的憂傷。學著從0開始來做動畫引擎資源,如下這張圖----------------------------------我的可愛的分割線--------------------------------------這個簡單的動畫引擎,主要是想實現canvas開發中,開發可以像平時用div一樣的實現元素的嵌套,我用一個Bitmap.js 類 來 做 類似
Time of Update: 2018-12-07
canvas簡單畫板,花了幾個小時搞定的簡單玩意,目前只是初步demo,有時間在完善一下。 <!doctype html><html><head><title>canvas簡單畫板</title><style type="text/css">#can{ width:600px; height:500px; border:1px solid #ccc; margin-top:0px;
Time of Update: 2018-12-07
--用case排序 CASE c_id WHEN '15' THEN 1 else 2 endselect top 4 c.* from m3_channel c where isnull(c.c_upload_mediaserver,'-1') <> '0' ORDER BY CASE c_id WHEN '15' THEN 1 WHEN '14' THEN 2 WHEN '17' THEN 3 WHEN '16' THEN 4 ELSE 5 END
Time of Update: 2018-12-07
層疊加的五條疊加法則 <!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> <title>Untitled Page</title>
Time of Update: 2018-12-07
http:是一個用戶端和伺服器端請求和應答的標準(TCP)。http協議其目的是為了提供一種發布和接收htttp頁面的方法一http協議的用戶端與伺服器的互動:由HTTP用戶端發起一個請求,建立一個到伺服器指定連接埠(預設是80連接埠)的TCP串連。HTTP伺服器則在那個連接埠監聽用戶端發送過來的請求。一旦收到請求,伺服器(向用戶端)發回一個狀態行,比如"HTTP/1.1 200 OK",和(響應的)訊息,訊息的訊息體可能是請求的檔案、錯誤訊息、或者其它一些資訊。 soap
Time of Update: 2018-12-07
本文字框IME被關閉 文法: style="ime-mode:disabled" 範例: <input type="text" name="textfield" style="ime-mode:disabled"> 禁止粘貼本文字框禁止粘貼文字: 文法:onpaste="return false" 範例:<input type="text" name="textfield" onpaste="return false"> 禁止複製本文字框禁止複製:
Time of Update: 2018-12-07
1) 遠程倉庫相關命令檢出倉庫:$ git clone git://github.com/jquery/jquery.git查看遠程倉庫:$ git remote -v添加遠程倉庫:$ git remote add [name] [url]刪除遠程倉庫:$ git remote rm [name]修改遠程倉庫:$ git remote set-url --push [name] [newUrl]拉取遠程倉庫:$ git pull [remoteName]
Time of Update: 2018-12-07
solr 查詢參數說明常用q - 查詢字串,必須的。fl - 指定返回那些欄位內容,用逗號或空格分隔多個。start - 返回第一條記錄在完整找到結果中的位移位置,0開始,一般分頁用。rows - 指定返回結果最多有多少條記錄,配合start來實現分頁。sort - 排序,格式:sort=<field name>+<desc|asc>[,<field name>+<desc|asc>]… 。樣本:(inStock desc, price asc)