$('.v_search_btn').click(function(e){
$('.v_search_form_div').animate({width:'toggle'},350);
});
<div class="v_search_form_div" style=" display:none;overflow:hidden">
[……]
$('.v_search_btn').click(function(e){
$('.v_search_form_div').animate({width:'toggle'},350);
});
<div class="v_search_form_div" style=" display:none;overflow:hidden">
[……]
// ‘http://127.0.0.1/osac.com.tw/zh-tw/tag_page.php?aaa=1&bbb=2’
// 當前頁面的 URL
window.location.href
// output : ‘http://127.0.0.1/osac.com.tw/zh-tw/tag_page.php?aaa=1&bbb=2’
// 域名
window.location.hostname;
// output : ‘127.0.0.1’
//當前頁的路徑和文件名
window.location.pathname;
// output : ‘/osac.com.tw/zh-tw/tag_page.php’
//所使用的網絡協議(http://或https://)
console.log(‘location.protocol=’+window.location.protocol);
// output : ‘http:’
//取URL參數
urlParam = decodeURIComponent(location.search)
// output : ‘?aaa=1&bbb=2′[……]
在參數中加入playlist這個參數,若只有一個影片就填一個就好
<iframe class="embed-responsive-item"id="ytplayer" type="text/html" width="640" height="360" src="https://www.youtube.com/embed/M7lc1UVf-VE?&autoplay=1&loop=1&rel=0&showinfo=0&color=white&iv_load_policy=3&playlist=M7lc1UVf-VE"
frameborder="0" allowfullscreen></iframe>
出處:http://stackoverflow.com/questions/25779966/youtube-iframe-loop-doesnt-work
[……]
$test_arr = array(array(“aa”), array(“bb”), array(“cc”));
‘二維陣列<br/>’.print_r($test_arr).'<br/>’;
$new_arr = call_user_func_array(‘array_merge’, $test_arr);
‘一維陣列<br/>’.print_r($new_arr);[……]
$url = https://www.youtube.com/watch?v=qzYTwIJrSKM&feature=relate;
parse_str( parse_url( $url, PHP_URL_QUERY ), $param_arr );
echo $param_arr[‘v’]
// output : qzYTwIJrSKM[……]
jQuery 選擇器中沒有所謂的「萬用字元(*)」,可以透過依些方式接近模糊查找元素或值的目的
下表屬性名稱不一定為Class,可以替換成需要的屬性
單引號可有可無
[class]比對元素包含指定屬性[id][class][href] 比對元素包含其中一個屬性[class=’test’] 完全比對元素屬性與值 (區分大小寫)[class^=’test’]比對元素屬性開頭為指定的值[class$=’test’] 比對元素屬性結尾為指定的值 [class*=’test’] 模糊比對屬性包含指定的值[class!=’test’]元素屬性不包含指定的值
[……]
@media screen and (max-width: 480px) {
(智慧型手機專用樣式)
}
@media screen and (min-width: 481px) and (max-width: 768px) {
(平板電腦專用樣式)
}
@media screen and (min-width: 769px) {
(電腦專用樣式)
}
區段的順序雖然可以變換,但如果考量CSS的執行效率,則建議從小畫面往大畫面撰寫樣式,這種作法不只寫起來更有效率,也可以提升可讀性。[……]
ul{
[……]
我打算用PHPMailer透過Gmail來發信,
Gmail說明 – 用戶端不接受我的使用者名稱和密碼
https://support.google.com/mail/answer/14257
亂碼、密碼產生器http://lab.sp88.com.tw/genpass/
[……]