摘要:
元素为对象的数组,称之为对象数组 阅读全文
摘要:
// Browser environment sniffing var inBrowser = typeof window !== 'undefined'; // Weex 是使用流行的 Web 开发体验来开发高性能原生应用的框架 var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform; // 两... 阅读全文
摘要:
let arr = [ { id: 1, name: "hong" }, { id: 2, name: "huang" }, { id: 3, name: "lan" } ] let obj = { id: 2, name: "gyang"} arr = arr.map(item => item.id === obj.id ? obj : item) console.log(JSO... 阅读全文
摘要:
效果如图 上完整代码 只需要在本地新建一个index.html 文件 然后将代码复制进去就可以看到效果 阅读全文
摘要:
https://github.com/SortableJS/Vue.Draggable 阅读全文
摘要:
let arr = [ 'changedBy', 'changedDate', 'createdBy', 'createdDate', 'deleteFlag' ] arr = arr.map(value => { let str = value.replace(/([A-Z])/g," $1") let name = str.substr(0,1).toUpper... 阅读全文
摘要:
1. html中引入 http-vue-loader.js 下载地址等详情访问: https://www.npmjs.com/package/http-vue-loader html中写法和vue中一样 <multisearch ref="multiSearchRef" ></multisearch 阅读全文
摘要:
1. 安装vuex-persistedstate 原理vuex仓库的东西存储到浏览器本地一份 cnpm install vuex-persistedstate 2. vuex/index.js 引用 import createPersistedState from 'vuex-persistedst 阅读全文
摘要:
https://github.com/amfe/lib-flexible/tree/master/src js主要适配页面布局 fontSize 使用dpr适配 使用sass预处理 单独新建一个mixin.scss 通过@minxin 加名称 就可以定义一个Mixins模块,在模块内你可以添加任何你 阅读全文
摘要:
<meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″> width:device-width 为设备的宽度。initial-scale:初始缩放比例。maximum-scale:允许用 阅读全文