原创 清除指定域名下的cookie
const exp = new Date(); exp.setTime(exp.getTime() - 1); document.cookie = `QIYE_SESSION=${Cookies.get('QIYE_SESSION'
原创 element form表單設置下拉選擇切換必填和非必填
參考鏈接:https://dsx2016.com/?p=529 <el-form-item label="發票類型" prop="billType"> <el-select v-model="a
原创 對象不支持find屬性或方法
由於ie瀏覽器不兼容,導致頁面數據渲染不出來: ie瀏覽器不兼容find寫法,在引用的公共方法中添加兼容代碼,如下: /*兼容處理 低版本IE*/ // Array.prototype.find || (Array.prototype
原创 element table 複選框部分禁用
<el-table-column type="selection" :selectable='isDisabled' width="55" align="left" fixed="left"></el-table-column> isDi
原创 js編碼習慣
ES6 中可以使用 array.includes(item) 來代替 array.indexOf(item) !== -1 判斷屬性是否存在 // 不好 const object = { prop: 'value' }; if
原创 vue父子組件生命週期
1.加載渲染過程 父beforeCreate->父created->父beforeMount->子beforeCreate->子created->子beforeMount->子mounted->父mounted 2.子組件更新過程 父
原创 el-table 合計行滾動問題
兩個table間切換,當切換到有合計行的表格時,合計行不隨滾動條滾動 解決辦法,將原先的v-if換成:hidden,合計行滾動正常
原创 vue $refs的基本用法
<div id="app"> <input type="text" ref="input1"/> <button @click="add">添加</button> </div><script> new Vue({
原创 部分常用sql,適用於oracle
上一個月時間: to_char(add_months(sysdate, -1),'yyyymm') 字符串補零: to_char(0.68,'FM9999990.0099') 近10天: select to_char((to_da
原创 Oracle中查看所有表和字段以及表註釋.字段註釋
轉自:http://www.cnblogs.com/xusir/p/3214714.html 獲取表: select table_name from user_tables; //當前用戶擁有的表select table_name fr
原创 mpvue小程序加載不出圖片 Failed to load local image resource /images/xx.png
mpvue開發小程序時候,添加靜態本地圖片解決辦法可以改webpack,或mpvue的包,這裏提供一個非常直接的辦法:直接寫 /static/img/xx.png比如:把圖片放在根目錄下的static文件下<img src="/stati
原创 將checkbox選中的值寫入數組
var selected=newArray(); $("input:checkbox[name=jcd]:checked"]).each(funxtion(i){ selected[i]=$(this).val(); })
原创 datagrid選中行
選中最後一行: var persLength=$("dg-pers").datagrid("getRows").length; $("dg-pers").datagrid("selectRow",persLength-1);清空data
原创 Fusioncharts參數
1、背景 相關參數: 1): bgColor 設置背景顏色。 (多個顏色則顯示爲漸變效果) A: bgColor=" FF0000 " 使用紅色背景 。 B: bgColor=" FF0000 ,00FF00 " 使用 紅色 到綠色 的漸
原创 Unexpected end of JSON input while parsing near錯誤解決辦法
npm install出現”Unexpected end of JSON input while parsing near”的錯誤。運行 npm cache clean --force