BlogJava 联系 聚合 管理  

Blog Stats

文章分类

收藏夹

随笔档案

文章档案

Java相關技術


kait

2011年9月19日 #

jquery 提供一個很 fancy selector幫助我們很容易的找到要控制的 dom 元件

jquery 做法:

$(“input[name^='word']).each(function(){

 alert( $(this).val() );

})

$("input[name^='word']") 是指所有inputname只要是 word 開頭的都抓出來,若然有1form以上,並且不同form有相同欄位名稱時,這樣抓可能會出錯,所以需要再把 form考量進來。

$("form[name='form1'] input[name^='nextSign']").each(function(){

 alert( $(this).val() );

})

jquery selector 有個特色,可以將不同的 selector 組合使用,這樣幾乎沒有找不到的DOM物件。

attribute 抓物件方式還有

[attribute*=value] 只要出現value關鍵字

[attribute$=value] value關鍵字結尾

[attribute!=value] value關鍵字不能出現


文章來源:

http://itfarmer.pixnet.net/blog/post/15526223-%5Bjquery%5D%E8%B6%85%E7%B4%9A%E5%BC%B7%E5%A4%A7%E7%9A%84-selector

 

posted @ 2012-09-03 17:57 小天 阅读(321) | 评论 (0)编辑 收藏

REGEDIT

[HKEY_LOCAL_MACHINE\Software\CLASSES\*\shellex\ContextMenuHandlers\UltraEdit-32]
@="{b5eedee0-c06e-11cf-8c56-444553540000}"

[HKEY_LOCAL_MACHINE\Software\CLASSES\CLSID\{b5eedee0-c06e-11cf-8c56-444553540000}]
@="UltraEdit-32"

[HKEY_LOCAL_MACHINE\Software\CLASSES\CLSID\{b5eedee0-c06e-11cf-8c56-444553540000}\InProcServer32]
@="C:\\Program Files (x86)\\IDM Computer Solutions\\UltraEdit\\ue32ctmn.dll"
"ThreadingModel"="Apartment"

然後將 C:\\Program Files (x86)\\IDM Computer Solutions\\UltraEdit 改成你所安裝ultraedit所在路徑,
再將上面資料存成 ultraedit.reg,接著再雙擊它,進行註冊,就可以了~~
posted @ 2011-10-04 16:46 小天 阅读(1072) | 评论 (0)编辑 收藏

Step 1: 新增一個文字檔,並將副檔名改為:  xxxx.bat  (xxxx 由自己隨意命名)

 

Step 2: 輸入以下網路設定指令

           netsh interface ip set address "區域連線" static IP位置 子網路遮罩 預設閘道 1

           netsh interface ip set dns "區域連線" static 慣用DNS伺服器

           netsh interface ip add dns "區域連線" 其他DNS伺服器

 

          例如:

          netsh interface ip set address "區域連線" static 192.168.2.1 255.255.255.0 192.168.2.254 1

          netsh interface ip set dns "區域連線" static 168.95.1.1


在win7的環境,記得要用系統管理者的權限才可執行此批次檔~~


參考網址:

http://www.dotblogs.com.tw/satan45/archive/2010/08/05/17037.aspx
http://jemmywalker.pixnet.net/blog/post/38324489-%E8%A8%AD%E5%AE%9A%E7%B6%B2%E8%B7%AFip%E6%89%B9%E6%AC%A1%E6%AA%94
http://bbs.ee.nchu.edu.tw/gemmore/wufish&F10VCR0B&56

posted @ 2011-09-19 10:05 小天 阅读(229) | 评论 (0)编辑 收藏