發表文章

目前顯示的是 11月, 2020的文章

JS語法紀錄

 ajax 上傳csrf headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, jquery AJAX $.ajax({     url: 'service_update.php7',     data: {         store_issue_id: id,         type:'delete'     },     type: 'post',     success: function(data){         location.reload();     },     error:function(data) {         console.log(data);     } }); 取得某個日期的下一個日期 function getNextDate(date,day) {       var dd = new Date(date);       dd.setDate(dd.getDate() + day);       var y = dd.getFullYear();       var m = dd.getMonth() + 1 < 10 ? "0" + (dd.getMonth() + 1) : dd.getMonth() + 1;       var d = dd.getDate() < 10 ? "0" + dd.getDate() : dd.getDate();       return y + m + d; }; getNextDate("2018-09-27",10)

ZeroSSL 申請免費的SSL

圖片
申請免費的SSL 申請網址 :  https://zerossl.com/ 進入網址且註冊後,請點選申請SSL按鈕 打上自己的domain , 這邊是測試所以打google網址😬 接著下方可以選擇要使用免費的90天, 還是1年的方案 成功後 , 有三種方式可以選擇 , 我們選上傳檔案的方式驗證  第1點下載檔案  , 然後把檔案上傳到自己網站 第2,3點的指定入路徑 在按下一步 就可以拿到 免費的SSL唷~

Vuejs導入( fb / google ) sdk登入紀錄

  index.php :  記得要載入下方google登入的api < script src = " https://apis.google.com/js/platform.js?onload=onLoadCallback " async defer > </ script > template-html < button type = " button " class = " btn btn-google " id = " google_register " > < span > 使用Google註冊 </ span > </ button > < button type = " button " class = " btn btn-facebook " @click = " fb_login " > < span > 使用Facebook註冊 </ span > </ button > methods : //登入按鈕 fb_login ( ) { var self = this ; FB . login ( function ( response ) { if ( response . status === 'connected' ) { // Logged into your webpage and Facebook. //會回傳id,name,email FB . api ( '/me/?fields=id,name,email' , function ( response ) { //將資料用ajax回傳到伺服器 axios . post ( '/thirdpartyLogin' , { email : ...