進入MySQL Command Line Client環境,
使用root登入mysql:
輸入密碼
kinomelma 發表在 痞客邦 留言(0) 人氣(16)
Javascript中
function IsChinese(date) {//jwu 2015/05/27
var regex = /[\u4e00-\u9fa5]{1,}/;
return regex.test(date);
}
kinomelma 發表在 痞客邦 留言(0) 人氣(395)
<script type='text/javascript' src='//code.jquery.com/jquery-1.11.0.js'></script>
<link rel="stylesheet" type="text/css" href="/css/result-light.css">
<script type='text/javascript'>
$(function(){
//2015/07/20 jwu
$("#show_other").hide();//先隱藏,等到選到其他後再打開
$("#provider_id").change(function(){
//if ($(this).val()=='[other]'){
// $("#show_other").show();
//}else{
// $("#show_other").hide();
//}
$('#show_other')[ ($("option[value='[other]']").is(":checked"))? "show" : "hide" ]();
});
});
</script>
kinomelma 發表在 痞客邦 留言(0) 人氣(182)
<!DOCTYPE html>
<html lang="zh-TW">
<head>
<title>RWD範例</title>
<!-- -->
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >kinomelma 發表在 痞客邦 留言(0) 人氣(643)
index.htm
<script type="text/javascript" src="/js/plugins/jQuery/ColorBox/jquery.colorbox.js"></script>
<script type="text/javascript">
kinomelma 發表在 痞客邦 留言(0) 人氣(2,531)
-------------
form.html
-------------
<script type="text/javascript">
function del(id){
$.post( "/del", { id: id }, function(data){
var obj = jQuery.parseJSON( data );
if(obj.state=='y'){
alert('刪除完成');
location.reload();
}else if(obj.state=='s'){
alert('無法刪除,該底下尚有子資料');
}else{
alert('刪除失敗');
}
});
}
</script>
<input type="button" name="button4" value="刪除" onclick="del('100')">
-------------
php
-------------
<?php
$json_res = array('error' => 0, 'state' => '', 'mes' => '');
$json_res['state'] = 'y';
$json_res['mes'] = 'x';
die(json_encode($json_res));
?>
kinomelma 發表在 痞客邦 留言(0) 人氣(59)
kinomelma 發表在 痞客邦 留言(0) 人氣(1,771)
將smarty寫入目錄所有權改成nginx
chown nginx:nginx /usr/share/nginx/html/web/templates_c
kinomelma 發表在 痞客邦 留言(0) 人氣(32)
壓縮
#進入/tmp目錄
cd /tmp
#把/tmp目錄下面的alldata目錄壓縮為test.zip
zip -r test.zip alldata #壓縮tmp目錄
kinomelma 發表在 痞客邦 留言(0) 人氣(15,992)
當登入openwebmail (http://127.0.0.1/webmail)
出現Couldn't write /var/log/openwebmail.log! (Permission denied)
表示權限被拒絕啦!
kinomelma 發表在 痞客邦 留言(0) 人氣(503)