原创 獲取url鍵值
String.prototype.urlkey=function (){ if(!this.split('?')[1])return; let arr=this.split('?')[1].split('&');
原创 linux部署項目
VMware Workstation 12 官方專業版 鏈接:https://pan.baidu.com/s/1sZW7Q1Waq0HfQJqXFCwI2w 提取碼:1iqs centOS: 網易鏡像:http://mirrors.1
原创 angularJs中動態添加入口html文件的title
首先在index.html中加上 <title ng-bind="title"></title> 然後在需要的地方或全局加上 $rootScope.$watch('title',function(){ document.title =
原创 mpvue中的npm依賴版本升級,導致與其他老版本不兼容問題
前幾天重裝了一下電腦系統(真是手殘),把小程序項目直接刪了,當時想着再拉一個直接安裝不就完了,悲催的事情來了。。。。 重新拉取項目,一頓猛操作,項目跑不起來了。。。。(涼涼) 例如 :"mpvue": "^1.0.13" ~ 會匹配最近的
原创 mpvue坑-----onLaunch
在new vue()的時候不能加入store,否則在App.vue文件中onLaunch(){}失效 正確的使用姿勢: import store from '@/store' Vue.prototype.$store = store
原创 iscroll.js----下拉加載
引入iscroll-probe.js https://download.csdn.net/my <div class="wrap"> <div class="content"> 45
原创 http緩存機制
http緩存分爲兩種,一種是強制緩存,一種試協商緩存 強制緩存主要通過expires設置緩存過期時間和max-age設置緩存過期得時間段。 缺點:太依賴客戶端時間,客戶端時間錯誤會引起判斷失誤 解決:使用Cache-Control,主要指
原创 圖形驗證碼
imgVerifyCode: 'http://xxxxxxx&num=' + Math.floor(Math.random() * 10000)
原创 input--checkbox樣式
<label class="my-checklist-label"> <input type="checkbox" class="my-checkbox-input" value="選項B"> <span class="m
原创 switch滑動切換按鈕樣式
<input class="mui-switch mui-switch-animbg" ng-checked="checked==true" ng-click="switchTab()" type="checkbox"> .mui-