20141214
20140620
取得li的value值
首先HTML 4.01 不贊成使用 li value,但目前無替代方法。
jquery的.attr()是無法取得li 值(*數字可取得,但字串無法)
jquery的.val()是無法取得li值(*數字可取得,但字串無法)
attr() 取得一開始的值
val() 可以重複取得改變後的數值
改用tag取代value即可。
http://tech.avivo.si/tag/jquery-get-attribute-value/
jquery的.attr()是無法取得li 值(*數字可取得,但字串無法)
jquery的.val()是無法取得li值(*數字可取得,但字串無法)
attr() 取得一開始的值
val() 可以重複取得改變後的數值
改用tag取代value即可。
http://tech.avivo.si/tag/jquery-get-attribute-value/
20140618
20140617
不要使用 meta標籤來 "refresh" 做轉址
來源
Why? because it could break the "back" button. Imagine that the user presses the "back" button, the refresh would work again, and the user would bounce forward. The user will most likely get very annoyed, and close the window, which is probably not what you, as the author of this page, want.
這會讓瀏覽器前頁按鈕失效(往前頁後卻不斷的被導引),對使用者會有很大困擾。
用js來轉window.location.replace([string])
Why? because it could break the "back" button. Imagine that the user presses the "back" button, the refresh would work again, and the user would bounce forward. The user will most likely get very annoyed, and close the window, which is probably not what you, as the author of this page, want.
這會讓瀏覽器前頁按鈕失效(往前頁後卻不斷的被導引),對使用者會有很大困擾。
用js來轉window.location.replace([string])
20140612
如何使用PHPMailer-master
PHPMailer-master
使用前
- 記得安裝php擴充模組php_openssl.dll(在php安裝程式就自帶了,預設是沒有安裝)
- 測試gmail smtp
"telnet smtp.gmail.com 587"
應該會回傳
"220 mx.google.com ESMTP f19sm71757226qaq.12 - gsmtp" - 開起gamil IMAP
- 修改PHP.ini
[php_openssl]
extension=php_openssl.dll - 重開apache
- 看一下phpinfo資訊
- 測試能否寄信
20140119
20140108
http://world.yam.com/post.php?id=1495
2011年時,非洲剛果共和國的軍方釋出了當時盜獵猖獗的情況,許多大象遭到殺害丟棄。照片中可以見到大象屍骸滿布野外,有的大象的臉部整個被砍下留下空洞
我對血腥獵奇一向容忍度很高,就連一部塞爾維亞的電影我都還算能冷靜的看完。
但這張照片出乎意料讓我感到...震撼?
應該是跟我認知、預期、既有經驗的有所落差,
"失去頭顱、象牙的獸靜靜躺在那"而不是"躺在血泊中的"
,暴力被抹平過後的寂靜更具有不協調感。
訂閱:
文章 (Atom)