多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
``` <!doctype html> <html> <head> <meta charset="utf-8"> <title></title> <script src="vue.js" type="text/javascript" charset="utf-8"></script> <script src="https://unpkg.com/axios/dist/axios.min.js"></script> </head> <body> <div id="app"> <button type="button" @click="getMsg">获取数据</button> <div>{{msg}}</div> </div> <script type="text/javascript"> var vue=new Vue({ el:"#app", data:{ msg:"你好啊" }, methods:{ getMsg:function(){ var that=this; axios.get("./new_file.json").then(function(response){ console.log(response) that.msg=response.data; }).catch(function(err){ }); } } }); </script> </body> </html> ```