取指定class標籤名
/** * VECTOR * https://vector.cool */ <script> $('.classname').get(0).tagName; $('.classname')[0].tagName; $('.classname').prop("tagName"); </script>
[……]
/** * VECTOR * https://vector.cool */ <script> $('.classname').get(0).tagName; $('.classname')[0].tagName; $('.classname').prop("tagName"); </script>
[……]
以前一直有個觀念是網頁只能用系統字型,
}
相關網址
https://vector.cool/css-load-font/
http://www.w3schools.com/cssref/css3_pr_font-face_rule.asp
不過,
我想中文字型如果非必要,還是別了吧,因為中文字型檔通常很大,
雖然沒實際測過,但我相信一定會影響載入速度
[……]
關閉 magic_quotes_gpc
# Only if you use PHP
<ifmodule mod_php4.c>
php_flag magic_quotes_gpc off
</ifmodule>
減少 Bandwidth 使用量
# Only if you use PHP
<ifmodule mod_php4.c>
php_value zlib.output_compression 16386
</ifmodule>
變更 scripts 副檔名
AddType application/x-httpd-php .php4
以上語句會將 .php4 當成 PHP 程式編譯。
禁止 .htaccess 開放瀏覽
<files file-name>
order allow,deny
deny from all
</files>
變更預設頁面
DirectoryIndex myhome.htm index.htm index.php
自訂錯誤頁面
ErrorDocument 403 /forbidden.html
ErrorDocument 404 /notfound.html
ErrorDocument 500 /servererror.html
開放/禁止瀏覽目錄
# 禁止
Options All -Indexes
# 開啟
Options +Indexes
本文出自
http://www.hkcode.com/linux-bsd-notes/438
Apache Rewrite with Htaccess 理解與技巧
[……]
$(document).ready(function(e) { $('#test').click(function(e){ alert('觸發綁定事件'); }); $('#test').trigger("click"); $('#test')[0].click; });
http://www.pureexample.com/tw/jquery/custom-event.html[……]
<script> $(document).ready(function(e) { $(".clear_btn").click(function(e){ $('#edit_member')[0].reset(); }); }); </script>
[……]