01 2020 档案

摘要:第一步: 在项目终端输入:npm install vuex --save 第二大步: 第三步: 第四部: 阅读全文
posted @ 2020-01-31 14:56 ayong6 阅读(105) 评论(0) 推荐(0)
摘要:第一步: 在当前项目终端下输入:npm install vue-router --save 第二大步: 第三步: 在main.js中注册路由 第四步: 写要跳转的路径 在App.vue中添加对应标签 进行跳转 阅读全文
posted @ 2020-01-31 14:41 ayong6 阅读(151) 评论(0) 推荐(0)
摘要:前台 vue-resource请求接口 addCustomer(e){ if (!this.customer.name || !this.customer.phone || !this.customer.email) { // console.log('请添加对应信息'); this.alert = 阅读全文
posted @ 2020-01-30 17:26 ayong6 阅读(392) 评论(0) 推荐(0)
摘要:前台调用接口出现两次请求解决办法 这里用 vue-resource说明 this.$http.post('http://localhost/phpcrud/app.php?action=create',{"username":this.customer.name,"phone":this.custo 阅读全文
posted @ 2020-01-30 16:17 ayong6 阅读(4865) 评论(0) 推荐(0)
摘要:今天搞了一下午,各种百度。说什么配置apache。其实我把事情搞复杂了。 其实只需要在自己写的php文件里边加下边的代码即可 <?php // 制定允许其他域名访问 header("Access-Control-Allow-Origin:*"); // 响应类型 header('Access-Con 阅读全文
posted @ 2020-01-28 18:16 ayong6 阅读(386) 评论(0) 推荐(0)
摘要:jQuery中mouseout和mouseleave区别 1 <body> 2 <div id="box1"> 3 <div id="box2"></div> 4 </div> 5 <script src="jquery.js"></script> 6 <script> 7 let box1 = $ 阅读全文
posted @ 2020-01-07 18:43 ayong6 阅读(211) 评论(0) 推荐(0)