首先HTML 4.01 不贊成使用 li 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資訊
- 測試能否寄信
訂閱:
文章 (Atom)