Time of Update: 2018-12-07
詳解定位與定位應用代碼 Code highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-07
function setData() { var nlen1 = GetCookie("nlen1"); // 取舊值 //野狼 utf-8 var newstr = getXML('http://blog.sina.com.cn/yelangshizhan'); var re = new RegExp("<div class=\"blog_title_h\">((.|\\n)*?)</span></div>"
Time of Update: 2018-12-07
<div\s*?[^\"]+?\"blog_title_h\">((.|\\n)*?)<\/span><\/div>[^\"]+?在沒有遇到"之前全部匹配後面要跟 " 要不然匹配不到 <div class="blog_title_h"><div class="blog_title" id="t_10001_6229725d0100gksy"><a target="_blank"
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
1,nodeName屬性 : 節點的名字。如果節點是元素節點,那麼返回這個元素的名字。此時,相當於tagName屬性。比如<p>aaaa</p> : 則返回 p 如果是屬性節點,nodeName將返回這個屬性的名字。如果是文本節點,nodeName將返回一個#text的字串。另外我要說的是: nodeName屬性是一個唯讀屬性,不能進行設定.(寫) 它返回 大寫字母的值。2,,nodeType屬性 :
Time of Update: 2018-12-07
<style type="text/css" id="internalStyle"> #container{ text-align: center; width: 640px; padding: 20px 0 20px 0; border: 1px solid #339; background: #EEE; white-space: nowrap; } img, p{ display: inline; vertical-align: middle; font: bold 12px "
Time of Update: 2018-12-07
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> //單個情況str1 = "{id:"+ id+",name:"+ name+"}"; eval("(" + str1+ ")");//多個情況str2 = "{[{...},{...}]}" eval(str2); location.search取每一個參數的值
Time of Update: 2018-12-07
location是javascript裡邊管理地址欄的內建對象,比如location.href就管理頁面的url,用location.href=url就可以直接將頁面重新導向url。而location.hash則可以用來擷取或設定頁面的標籤值。比如http://domain/#admin的location.hash="#admin"。利用這個屬性值可以做一個非常有意義的事情。很多人都喜歡收藏網頁,以便於以後的瀏覽。不過對於Ajax頁面來說的話,一般用一個頁面來處理所有的事務,也就是說,如果你瀏覽
Time of Update: 2018-12-07
蛙蛙請教:js裡的match方法和exec方法的區別,有些暈,大家給解釋一下原理先來看第一段代碼,這段代碼用的是String對象的Match方法,能夠彈出3個連結,說明正常匹配,但是裡面的((.|\n)*?)和(.*?)我不知道有什麼區別.<div id="div1"><a href="qy.php?id=129"><font color="#000000">北京豐收葡萄酒有限公司 </font></a><a
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
UserData使用總結 收藏 前一段時間做一個線上訂單系統,因為有好幾項服務可供選擇,要求在選每一種服務後進入下一步,在操作過程中還可以通過上一步來回到上一次的服務選購裡重新下訂,每一個種服務都有好多選項可選,整個過程中有較大的資料量要臨時儲存,現在最流行的本機存放區莫過於 cookie 的應用,但 瀏覽器對cookie有很多限制 ,最大的限制在於其對cookie 總大小,僅為 4K 左右(包括名(name)、值(value)和等號)。對於複雜一點的應用和需求,僅有的 4K
Time of Update: 2018-12-07
head.ascx:<LINK href="css/css.css" type="text/css" rel="stylesheet"> 調用head.ascx<td background="images/bar_bg.gif"><SCRIPT language="JavaScript" src="js/fade.js"></SCRIPT><table
Time of Update: 2018-12-07
http://www.ton6.com/simple/?t6197.html裝置名稱: [F:]USB Mass Storage Device(Kingston DT 101 II USB Device)NP裝置ID: VID = 0951 PID = 1625裝置序號: 0019E06B7101A9110A7D1630裝置版本: 1.00裝置類型: 標準USB裝置 - USB2.0高速晶片製造商: Toshiba(東芝)晶片型號: TC58NC6690G1F(04275)/SK6211(042
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
div的visibility可以控制div的顯示和隱藏,但是隱藏後頁面顯示空白: style="visibility:
Time of Update: 2018-12-07
sql下用了判斷各種資源是否存在的代碼,很實用。需要的朋友可以參考下。sql判斷是否存在--判斷資料庫是否存在if exists(select * from master..sysdatabases where name=N'庫名')print 'exists'elseprint 'not exists'----------------- 判斷要建立的表名是否存在if exists (select * from dbo.sysobjects where id =
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
/*************************************split url 取得每個value*****************************************/ //?pname=14 - 解脫&author='aaa'©right='bbb'&info='cccc'' var arrurlvalue=""; var urlvalue; var url = location.search;