原创 Vue 實現文件的下載

<Button type="primary" @click="exportMoudle"><Icon type="ios-download-outline"></Icon>下載模板</Button> exportMoudle:func

原创 關於vue集成高德地圖使用小結

安裝插件: 一、script引入 在index.html文件直接引入高德地圖js文件 <script type="text/javascript"src="https://webapi.amap.com/maps?v=1.4.15&ke

原创 腳手架搭建vue項目及注意事項

一、項目化 cnpm install vue-cli -g 搭建手腳架 vue --version  查看vue版本 vue init webpack ProjectName 初始化項目 cd  PojectN

原创 uniapp 熱更新

const checkUrl=""; //檢測是否更新地址 let downServer = ""; let totalSize = 0; export const checkUpdate = (wgtVer,lx) => {

原创 uniapp 個推(頁面代碼)

export default { onLaunch: function () { // #ifdef APP-PLUS // 鎖定屏幕方向 plus.screen.lockOrientation('port

原创 頁面自適應瀏覽器高度

頁面自適應高度,iview--table爲例 <template> <div style="min-width: 1024px !important"> <Table :height="mheight" :da

原创 iview--table自定義列頭

iview---table自定義列頭 官方API提到renderHeader函數 自定義列頭顯示內容,使用 Vue 的 Render 函數。傳入兩個參數,第一個是 h,第二個爲對象,包含 column 和 index,分別爲當前列數據和當

原创 vue+iview兼容IE9及以上記錄

IE不支持ES6語法 安裝解碼器 npm install --save babel-polyfill //轉碼器,可以將ES6代碼轉爲ES5代碼 修改webpack.base.conf.js entry: { //

原创 vuejs 圖片預覽插件 v-viewer

https://github.com/mirari/v-viewer github地址。 1.安裝配置 npm install v-viewer --save 2.在main.js中引入 import Viewer from 'v-v

原创 electron + nodejs (熱更新)

package.json "build": { "appId": "com.whbs.app", "productName": "whbs", "directories": { "output": "build"

原创 electron + nodejs 創建單例應用

// app模塊 :控制應用的生命週期 const { app} = require('electron'); // 定義全局變量 let win; //單實例模式,防止exe文件多次重複打開 const gotTheLo