轉自 http://stackoverflow.com/questions/221294/how-do-you-get-a-timestamp-in-javascript
--
Math.round(new Date().getTime() / 1000)

dizzy03 發表在 痞客邦 留言(0) 人氣()

避免中文字在json encode後被轉碼, 可參考下列做法:
$respAry["errMsg"]=urlencode('後端資料庫異常'); //把資料先編碼, 就可避開 json encode時針對中文字的轉碼
$respJsonStr = urldecode(json_encode($respAry)); //json encode後要記得解碼, 還原出正確的資料

dizzy03 發表在 痞客邦 留言(0) 人氣()

今天又遇到同樣問題啦!! 又忘記了, 手動置頂 = =
--
如果在循环里面可以用break,如果是结束一个函数的话就用Return
--

dizzy03 發表在 痞客邦 留言(0) 人氣()


轉自 http://stackoverflow.com/questions/306583/this-selector-and-children
問題: div裡頭有一張圖, 目前抓到div, 要如何選擇到裡頭的圖片?
答案: $(this).find("img"); 或是 $(this).children("img");

dizzy03 發表在 痞客邦 留言(0) 人氣()

vote up
preventDefault是避免原本的動作執行
http://www.w3school.com.cn/htmldom/event_preventdefault.asp
--
定义和用法

dizzy03 發表在 痞客邦 留言(0) 人氣()

裡頭有jQuery BlockUI的用法
http://malsup.com/jquery/block/#overview
--
Usage is very simple; to block user activity for the page:

dizzy03 發表在 痞客邦 留言(0) 人氣()

http://www.51240.com/unixtime/
直接線上轉, 不用再自己寫程式去轉囉!!

dizzy03 發表在 痞客邦 留言(0) 人氣()

轉自 http://www.webzone8.com/article/77.html
取得星期或月份的第一天和最後一天的Function
帶入參數給字串, 可用strtotime相容的格式, 如"+1 month"、"-1 week"

dizzy03 發表在 痞客邦 留言(0) 人氣()

用Javascript 的 location.replace轉址只能帶GET變數
但是這樣變數都被看光光了....該如何弄成POST變數捏
模擬表格送出就可以指定為POST送出囉!
 

dizzy03 發表在 痞客邦 留言(0) 人氣()


轉自 http://appnews.fanswong.com/?function=readnews&nid=21239
--
▲(圖/取自網路)
証件遺失的自保方法........很重要

dizzy03 發表在 痞客邦 留言(0) 人氣()

轉自 http://www.360doc.com/content/07/0927/12/3500_774196.shtml
--
接收xml:

dizzy03 發表在 痞客邦 留言(0) 人氣()

轉自 http://stackoverflow.com/questions/5224790/curl-post-format-for-curlopt-postfields
--
這function可以將array轉成post或是get的參數

dizzy03 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。