最近開始思考未來,讀了一些文章心得如下:
1. 在興趣、能力 (經常被主管稱許的地方)、市場需求間取得交集
2. 興趣、未來性、不可取代性比薪水重要
3. 用要與不要,加上關鍵字歸納出大方向與縮小範圍
Reference:
http://blog.yam.com/tzaralin/article/64336974
找不到理想與熱情?你需要第二次「抓周」!
找出生涯規劃的關鍵字
三個圈畫出你的領域
2013年7月15日 星期一
2013年7月14日 星期日
如何修改或取得 HTML Element 中的文字內容
1. innerHTML
2. nodeValue => 因為 HTML Element 中的文字內容也算是一個 Node
ex.
包含了三個 Node:
a. test1
b.
c. test3
Reference:
http://www.w3schools.com/htmldom/dom_properties.asp
http://javascript.info/tutorial/basic-dom-node-properties
2. nodeValue => 因為 HTML Element 中的文字內容也算是一個 Node
ex.
test1test2test3
包含了三個 Node:
a. test1
b.
c. test3
Reference:
http://www.w3schools.com/htmldom/dom_properties.asp
http://javascript.info/tutorial/basic-dom-node-properties
2013年7月9日 星期二
Msxml2.XMLHTTP 與 Microsoft.XmlHttp 的差異
在撰寫 AJAX 使用 XMLHttpRequest 物件時,同時必須要考慮到的瀏覽器相容性問題。
當我們使用 ActiveXObject 時蠻常遇到的疑惑就是 Msxml2.XMLHTTP 與 Microsoft.XmlHttp 的差異。
簡單的說就是版本的差異,相對地跟相容性有關。
Reference:
http://msdn.microsoft.com/en-us/library/ie/ms535874%28v=vs.85%29.aspx
http://forums.asp.net/t/1000060.aspx/3/10
當我們使用 ActiveXObject 時蠻常遇到的疑惑就是 Msxml2.XMLHTTP 與 Microsoft.XmlHttp 的差異。
簡單的說就是版本的差異,相對地跟相容性有關。
Reference:
http://msdn.microsoft.com/en-us/library/ie/ms535874%28v=vs.85%29.aspx
http://forums.asp.net/t/1000060.aspx/3/10
2013年6月27日 星期四
Register Event Handler
1. [Element].onevent
在 IE8 以前的瀏覽器上有一些奇怪的限制,如:在 Iframe Element上不允許註冊 onload
2. [Element].addEventListener
3. [Element].attachEvent
使用 2 或 3 註冊又可以分成三種方式
A. Anonymous: function(){...}
a. 不會被立即執行
b. 無法被移除
B. Function Reference: [Function Name]
a. 不會被立即執行
b. 無法帶參數
C. Function Call: [Function Name]()
a. 會被立即執行
b. 可以帶參數
在 IE8 以前的瀏覽器上有一些奇怪的限制,如:在 Iframe Element上不允許註冊 onload
2. [Element].addEventListener
3. [Element].attachEvent
使用 2 或 3 註冊又可以分成三種方式
A. Anonymous: function(){...}
a. 不會被立即執行
b. 無法被移除
B. Function Reference: [Function Name]
a. 不會被立即執行
b. 無法帶參數
C. Function Call: [Function Name]()
a. 會被立即執行
b. 可以帶參數
2013年6月25日 星期二
開放的 DNS Server
Google DNS
Preferred: 8.8.8.8
Alternate: 8.8.4.4
Alternate: 8.8.4.4
OpenDNS
Preferred: 208.67.222.222
Alternate: 208.67.220.220
Alternate: 208.67.220.220
Reference: http://getpocket.com/a/read/383826640
2013年6月19日 星期三
2013年5月9日 星期四
Web 控制 Browser Cache 的方式
http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
http-equiv="Pragma" content="no-cache" />
http-equiv="Expires" content="0" />
Reference:
https://developer.mozilla.org/en-US/docs/HTTP_Caching_FAQ
http://hungred.com/how-to/tutorial-stop-caching-jquery-javascript/
http://stackoverflow.com/questions/49547/making-sure-a-web-page-is-not-cached-across-all-browsers
訂閱:
文章 (Atom)