var item = $('input[name=member.type]:checked').val();
2013年11月22日
利用jquery disable或是enable
前言:
htmle裡的「disabled」和「checked」一樣 不管是=true false 都是true
所以只能靠js解決==
可以用removeAttr把disabled的這屬移移掉:
或是設為空字串:
如果是要disable
可以增加屬性:
htmle裡的「disabled」和「checked」一樣 不管是=true false 都是true
所以只能靠js解決==
可以用removeAttr把disabled的這屬移移掉:
$('.checkboxN').removeAttr('disabled');
或是設為空字串:
$('.element').attr('disabled', '');
如果是要disable
可以增加屬性:
$('.element').attr('disabled', 'disabled');
2013年11月19日
2013年11月15日
解除不能右鍵複製字
一般情況:
1.用firefox開 就能都解
2.或是用書籤方式 網址填入
javascript:(function() { function R(a){ona = "on"+a; if(window.addEventListener) window.addEventListener(a, function (e) { for(var n=e.originalTarget; n; n=n.parentNode) n[ona]=null; }, true); window[ona]=null; document[ona]=null; if(document.body) document.body[ona]=null; } R("contextmenu"); R("click"); R("mousedown"); R("mouseup"); R("selectstart");})()
大絕:
目前只適用chrome
1.裝套件「Quick Javascript Switcher」
2.裝套件「Enable Copy」
兩個同時使用!
1.用firefox開 就能都解
2.或是用書籤方式 網址填入
javascript:(function() { function R(a){ona = "on"+a; if(window.addEventListener) window.addEventListener(a, function (e) { for(var n=e.originalTarget; n; n=n.parentNode) n[ona]=null; }, true); window[ona]=null; document[ona]=null; if(document.body) document.body[ona]=null; } R("contextmenu"); R("click"); R("mousedown"); R("mouseup"); R("selectstart");})()
大絕:
目前只適用chrome
1.裝套件「Quick Javascript Switcher」
2.裝套件「Enable Copy」
兩個同時使用!
2013年11月14日
struts2 tag裡用split
<s:property value="member.anss.split(',').length"/><br/>
<s:iterator value="member.anss.split(',')" status="st" var="ans">
<s:property value="#st.index"/>-<s:property value="#ans"/><br/>
</s:iterator>
如何在 iPad, iPhone 正確同步 Google Calendar 多個行事曆
http://www.playpcesor.com/2012/06/ipad-iphone-google-calendar.html
打開iPad、iPhone的Safari瀏覽器,進入「http://m.google.com/sync/settings」。並選擇「變更語言」。
↓
切換到「English(US)」語言項目。
↓
下一個頁面後,點選中間的「Sign in with your Google Account」。
↓
輸入你的Google帳號、密碼進行登入。
↓
「My Calendars」裡,可以勾選你想同步哪些子日曆
↓
設定完成後回到iPad、iPhone桌面,點擊開啟你預設的行事曆。
打開iPad、iPhone的Safari瀏覽器,進入「http://m.google.com/sync/settings」。並選擇「變更語言」。
↓
切換到「English(US)」語言項目。
↓
下一個頁面後,點選中間的「Sign in with your Google Account」。
↓
輸入你的Google帳號、密碼進行登入。
↓
「My Calendars」裡,可以勾選你想同步哪些子日曆
↓
設定完成後回到iPad、iPhone桌面,點擊開啟你預設的行事曆。
2013年11月12日
備份CHROME
資料路徑
Win Xp:
C:\Documents and Settings\(使用者)\Local Settings\Application Data\Google\Chrome\User Data
Win 7:
C:\(使用者)\(你的使用者名稱,例如:Administrator)\App Data\Local\Google\Chrome\User Data
直接從A電腦複製到B電腦就好
Oracle SQL Developer UI 由中文改成英文
在sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
加上
加上
AddVMOption -Duser.country=US
AddVMOption -Duser.language=en
匯入匯出 DB所有的SCHEMA
oracle dump more then one schemas
exp system/密碼@xe full=Y file=c:/xxxxx.dmp
imp system/密碼@xe full=Y file=c:/xxxxx.dmp
exp system/密碼@xe full=Y file=c:/xxxxx.dmp
imp system/密碼@xe full=Y file=c:/xxxxx.dmp
訂閱:
文章 (Atom)