1.確認 mysql 密碼 為 41位元(php5.3要用)
`mysql`.`user` 可以看到密碼
A. SET SESSION old_passwords=0;
B. SET PASSWORD FOR 'webuser'@'localhost' = PASSWORD('123456')
benjamin16pp 發表在
痞客邦
留言(0)
人氣()
header("Access-Control-Allow-Origin: *");
服務端: 解除對跨網域的限制
Client端: 使用JSONP
benjamin16pp 發表在
痞客邦
留言(0)
人氣()
$("aaa").live("clickr",function(e){
if(e.target == this){
// do something
}
});
benjamin16pp 發表在
痞客邦
留言(0)
人氣()
var newArray = oldArray.slice();
benjamin16pp 發表在
痞客邦
留言(0)
人氣()
var testFunction = function(obj) {
var args = Array.prototype.slice.call(arguments,1);
var a = args.shift();
console.log("The first argument is: %s", a);
for(var i=0;i<arguments.length;i++){
console.log(arguments[i]);
}
};
benjamin16pp 發表在
痞客邦
留言(0)
人氣()
function testcall(){
alert(this);
}
testcall.call('test', '')
benjamin16pp 發表在
痞客邦
留言(0)
人氣()
https://www.javaworld.com.tw/roller/caterpillar/entry/javascript_function_memo
https://developer.mozilla.org/zh_tw/Core_JavaScript_1.5_%E6%95%99%E5%AD%B8/%E8%81%B7%E5%93%A1%E7%9A%84%E4%BE%8B%E5%AD%90/%E6%9B%B4%E9%9D%88%E6%B4%BB%E7%9A%84%E5%BB%BA%E6%A7%8B%E5%AD%90
benjamin16pp 發表在
痞客邦
留言(0)
人氣()
benjamin16pp 發表在
痞客邦
留言(0)
人氣()
----- 設定 Apache 支援 .htaccess 保護功能 -----當您網站上有某些網頁不想讓人可以隨便瀏覽 (例如:管理介面、程式後台.....),此時可利用 Apache 內的 .htaccess 功能來替網頁進行管制保護
AllowOverride (允許的覆寫參數功能):
表示是否允許額外設定檔 .htaccess 的某些參數覆寫?我們可以在 httpd.conf 內設定好所有的權限,不過如此一來若使用者自己的個人網頁想要修改權限時將會對管理員造成困擾。因此 Apache 預設可以讓使用者以目錄底下的 .htaccess 檔案內覆寫 <Directory> 內的某些功能參數。 這個項目則是在規定 .htaccess 可以覆寫的權限類型有哪些。常見的有:
benjamin16pp 發表在
痞客邦
留言(0)
人氣()
When you add or remove a DOM node.
When you apply a style dynamically (such as element.style.width="10px").
When you retrieve a measurement that must be calculated, such as accessing offsetWidth, clientHeight, or any computed CSS value (via getComputedStyle() in DOM-compliant browsers or currentStyle in IE).
benjamin16pp 發表在
痞客邦
留言(0)
人氣()
https://codeaid.net/php/calculate-script-execution-time-%28php-class%29
benjamin16pp 發表在
痞客邦
留言(0)
人氣()
40GB的硬碟
所需目錄/裝置 |
磁碟容量 |
分割類型 |
/boot |
100MB |
primary(強制磁碟分割) |
/ |
10GB |
primary |
/home |
5GB |
primary |
swap |
1GB |
logical |
benjamin16pp 發表在
痞客邦
留言(0)
人氣()