随笔分类 - vue.js小笔记
摘要:vue.j Vue概述:MVX模式简介,Vue框架简介,Vue.js的安装与使用。 Vue基础语法:实例对象,生命周期,模板语法,计算属性,methods方法 Vue渲染:列表渲染,条件渲染 Vue事件与表单:事件处理,事件对象,事件委派,表单处理 MVX模式简介:MVX框架模式:MVC+MVP+M
阅读全文
摘要:步骤1:git clone https://github.com/vuejs/vue-devtools.git
阅读全文
摘要:<template> <div id='test'> <el-form :model="formPassword" labelWidth="80px" label-position="left"> <el-form-item label="旧密码"> <el-input type="password
阅读全文
摘要:1、在index.html引入高德地图 <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.4&key=your key"></script> //key找个适合例如:160cab8ad6c50752175d7
阅读全文
摘要:<template> <div style="width:800px"> <el-table :data="tableData" border row-key="id" align="left"> <el-table-column v-for="(item, index) in col" :key=
阅读全文
摘要:最终效果展 需要data定义一些,userList定义一个空数组,请求的数据都是存放这里面 对一些数据,方法处理,数据的来源是自己通过json-server搭建的本地数据,通过vue-resource请求数据,
阅读全文
摘要:在vue中我们如何引入jquery 1.在package.json里面的dependencies 加入“jquery”:“^3.2.1”, 图示 2. 终端输入 npm install jquery --save-dev (注意:jquery 一定要小写 不然会提示 Please use 'jque
阅读全文
摘要:vue.js 笔记安装vue 步骤1.npm install vue //安装vue2.npm install —global vue-cli //全局安装 vue-cli3.vue init webpack my-project //安装webpack 4.cd my-project //进入项目
阅读全文
摘要:<template> <div id="focus"> <ul > <li v-for="(item,index) in focusList"> <div class="fportraits"> <img :src="'./src/'+item.portrait" :alt="item.name">
阅读全文
摘要:methods: { goAnchor(selector) { var anchor = this.$el.querySelector(selector) document.body.scrollTop = anchor.offsetTop; // chrome document.documentE
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>helloform_Vue</title> <meta http-equiv="Content-Type" content="text/html; charse
阅读全文
摘要:或者注释
阅读全文
摘要:在main.js里进行全局注册 Vue.prototype.ajax = function (){}在所有组件里可调用 this.ajax // xxx.js 组件 exports.install = function (Vue, options) { Vue.prototype.ajax = fu
阅读全文
摘要:<div> <textarea placeholder="填写服务备注" style="width:100%; border:solid 1px #d8d8d8; border-radius:3px; font-size:14px; padding:10px;" rows="3" maxlength
阅读全文
摘要:vue-js <select @change="ps_onchange($event)"> <option value="" selected>请选择区域</option> <option value=""> 默认区域</option> <option value="1" >2</option> <
阅读全文
摘要:vue2.0 实现click点击当前li,动态切换class 1,文件内容 //为item添加不存在的属性,需要使用vue提供的Vue.set( object, key, value )方法。 看详解:https://cn.vuejs.org/v2/api/#Vue-set <template> <
阅读全文
摘要:<template> <el-button type="text" @click="open4">点击打开 Message Box</el-button> </template> <script> export default { methods: { open4() { this.$msgbox(
阅读全文
摘要:<template> <div class="coutter-wrapper"> <button type="button" @click="plus">+</button> <button type="button">{{ result }}</button> <button type="butt
阅读全文
摘要:<div class="open-box" v-if="SystemShow" @click="ColseShow"> <div class="open-box-content"> <h3>系统提示</h3> <p>系统检测到您是天下医家的医护人员 <br>可以通过APP进行点餐 <br>获得更多优
阅读全文
摘要:动态组件 <componet :is="组件名称"></component>
阅读全文

浙公网安备 33010602011771号