原创 css右上角傾斜封頁角效果
效果如圖: 第一種效果代碼如下: <div class="box"> <div class="box-con"> <div class="box-text">昨日</div> </div
原创 a-input-number 設置輸入爲正整數
<a-input-number :min="0" :precision="0" placeholder="請輸入正整數"/>
原创 js 判斷字符串是否符合日期格式
校驗格式:YYYY-mm-dd var str='2019-09-20 20:05' if(/^\d{4}-\d{2}-\d{2}$/.test(str)){ alert("格式正確!"); }else{ alert('格
原创 uni-app請求後臺304
修改manifest.json配置 1.打開manifest.json 2.選擇h5配置 3.路由模式選擇 history
原创 CryptoJS解密爲空
我解密爲空的原因是因爲密鑰長度的問題,密鑰需爲16位 eg:0102030405060708
原创 vxe-table 多條數據編輯後統一保存
vex-table地址:https://xuliangzhan_admin.gitee.io/vxe-table/#/table/start/install 需求:表格多行數據編輯後進行統一保存 頁面效果如下(編輯前、編輯後):
原创 element 下拉框加一個自定義選項
<el-select v-model="value" clearable placeholder="請選擇"> <el-option v-for="item in options" :key="item
原创 element設置表格表頭顏色
<el-table stripe border :header-cell-style="{background:'#FAFAFA'}"> 點贊 收藏 分享 文章舉報 素味
原创 點擊button按鈕時出現藍色邊框
點擊按鈕時出現輪廓(input輸入框也有),如下圖: 解決方法:在css中加入outline: none input{ outline: none } button{ outline: none } 注:outli
原创 antd日期選擇器禁止選擇當天之前的時間
使用disabledDate屬性(不可選擇的日期) <a-date-picker @change="dateChange" :disabledDate="disabledDate" v-decorator="['endDate']"/>
原创 [Vue warn]: Failed to resolve directive: modle (found in )
報錯原因:單詞拼寫錯誤 解決方法:檢查是否將model寫成了modle 溫馨提示:編寫代碼要細心且嚴謹(這已經是我第二次犯類似的錯誤了)
原创 TypeError: compilation. templatesPlugin is not a function
錯誤原因: webpack不是最新版 解決方法: 1.刪除node_modules,重新安裝 npm install 2.安裝最新webpack npm add webpack@latest
原创 a鏈接後拼接多個參數
頁面url後拼接參數 <a href="index.html?type=14&page=1&count=10"></a> js中url後拼接參數 var p=1 window.location.href="index.html?pa
原创 idea漢化插件
漢化包地址: 鏈接: https://pan.baidu.com/s/1Qkon6fqG-xBE6bUJqyFz6w 提取碼: fadq 該漢化包支持版本:idea2018 效果:將界面英文轉爲中文 1.安裝好idea之後,找到lib文
原创 js、jq點擊事件觸發a鏈接
方法1:使用window.location.href就可以實現 $('#btn').click(function () { window.location.href="apiIndex/replyProblem