随笔分类 -  vue

摘要: 阅读全文
posted @ 2019-05-07 15:45 又又IT 阅读(129) 评论(0) 推荐(0)
摘要:下载node(http://nodejs.cn/download/),安装时直接下一步,安装路径不要有汉字和空格查看node和npm是否安装成功,检查版本:node -vnpm -v安装淘宝的cnpm镜像,替代默认的npm: npm install -g cnpm --registry=https: 阅读全文
posted @ 2019-05-06 09:16 又又IT 阅读(3849) 评论(0) 推荐(0)
摘要:<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>Vue 子组件调用父组件 $emit</title> </head> <body> <div id="app"> <table border="2"> <tr v-for="(ite 阅读全文
posted @ 2019-04-30 13:01 又又IT 阅读(3996) 评论(0) 推荐(0)
摘要:Vue 下拉列表 组件模板 用户角色: 商品分类: 阅读全文
posted @ 2019-04-29 14:38 又又IT 阅读(4371) 评论(0) 推荐(0)
摘要:<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>Vue组件基础</title> </head> <body> <div id="app"> <button-counter></button-counter> <!-- 组件的复用 阅读全文
posted @ 2019-04-29 10:12 又又IT 阅读(131) 评论(0) 推荐(0)
摘要:<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>Vue复选框的全选</title> </head> <body> <div id="app"> <!-- 全选 --> <input type="checkbox" @click=" 阅读全文
posted @ 2019-04-27 15:53 又又IT 阅读(3095) 评论(0) 推荐(0)
摘要:<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>Vue表单绑定(单选按钮,选择框(单选时,多选时)</title> </head> <body> <!-- 单选按钮 --> <div id="app"> <input type=" 阅读全文
posted @ 2019-04-27 10:15 又又IT 阅读(7535) 评论(0) 推荐(0)
摘要:文本框 <!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>表单输入绑定</title> </head> <body> <div id='app'> <!-- 文本框 --> <label>姓名是:</label> <input v- 阅读全文
posted @ 2019-04-27 09:49 又又IT 阅读(5193) 评论(0) 推荐(0)
摘要:<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>登录方式的切换</title> </head> <body> <div id="app"> <template v-if="loginType 'email'"> <label>邮箱 阅读全文
posted @ 2019-04-27 08:28 又又IT 阅读(1662) 评论(0) 推荐(0)
摘要:index.html <!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>购物车</title> <link rel="stylesheet" href="index.css" /> </head> <body><div id="ap 阅读全文
posted @ 2019-04-26 19:16 又又IT 阅读(126) 评论(0) 推荐(0)