12 2019 档案
摘要:<!-- 获得焦点自动刷新 --><script type="text/javascript"> window.onfocus = function() { console.log("获得焦点"); if($("#freshflag").val() == "fresh"){ // 表示要刷新 { console.log(">要刷新"); window.location.reload(); $("#
阅读全文
摘要:postman设置 php接收方法 $_REQUEST = file_get_contents('php://input');$_REQUEST = json_decode($_REQUEST,true);
阅读全文
摘要:获取本周所有日期: /** * 获取本周所有日期 */ function get_week($time = '', $format='Y-m-d'){ $time = $time != '' ? $time : time(); //获取当前周几 $week = date('w', $time); $date = []; for ($i=1; $i 2018-06-18 [2] => 2018-...
阅读全文
摘要:判断当天 if((date('w',time()==6) || (date('w',time() == 0)){ $coin=28;//周末是28 } 指定日期判断 function week($str){ if((date('w',strtotime($str))==6) || (date('w',strtotime($str)) == 0)){...
阅读全文
摘要:$this.addClass("on").siblings(".action").removeClass("on"); siblings:返回带有类名 "start" 的每个 元素的所有同级元素:
阅读全文
摘要:url api 二维码 http://qr.liantu.com/api.php?text=$url
阅读全文
摘要:$('').data('code', code) .append( // 方法 $('').append(playedName) ) .append( // 号码列表 $('').append(wei+(code.actionData.length>18?(code....
阅读全文
摘要:layer ajax请求 ~~~ $.ajax({ // url: '../php/creatSceneXml.php', url: '../php/action.php', type: 'POST', dataType: 'html', data: { act: 'renameMap', name
阅读全文