随笔分类 -  Vue

摘要:图解 html 1 <body> 2 <script src="./Dvue.js"></script> 3 <script> 4 const app = new DVue({ 5 data: { 6 test: "I am test", 7 foo: { 8 bar: "bar" 9 } 10 } 阅读全文
posted @ 2020-01-02 14:06 林中有风 阅读(2827) 评论(0) 推荐(1)
摘要:1 <body> 2 <script src="./Dvue.js"></script> 3 <script> 4 const app = new DVue({ 5 data: { 6 test: "I am test", 7 foo: { 8 bar: "bar" 9 } 10 } 11 }) 1 阅读全文
posted @ 2020-01-02 13:59 林中有风 阅读(219) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>事件委托</title> </head> <body> <div style="width: 500px;height: 300px;border: 2px s 阅读全文
posted @ 2019-12-13 14:30 林中有风 阅读(555) 评论(0) 推荐(0)
摘要:npm安装axios npm install axios --save 引入axios import axios from 'axios' 使用axios mounted () { this.getHomeInfo() }, methods: { getHomeInfo () { //跨域请求可以在 阅读全文
posted @ 2019-09-26 11:39 林中有风 阅读(1107) 评论(0) 推荐(0)