摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2020-03-18 21:49 ayong6 阅读(143) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2020-03-18 21:48 ayong6 阅读(530) 评论(0) 推荐(0)
摘要: 第一步: 在项目终端输入: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 阅读(4866) 评论(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)
摘要: 1.设置cookie(setCookie) function setCookie(name,value,iDay){ //name相当于键,value相当于值,iDay为要设置的过期时间(天) var oDate = new Date(); oDate.setDate(oDate.getDate() 阅读全文
posted @ 2019-12-18 23:07 ayong6 阅读(397) 评论(0) 推荐(0)
摘要: js中 关于鼠标事件(MouseEvent)引出来的坐标问题 下面我们来挨个介绍常用的坐标,以及它们的含义: 1. var x = e.clientX; //clientX(clientY)说的是关于 var y = e.clientY; //当前body可视区域的x,y坐标,与页面是否滚动无关 a 阅读全文
posted @ 2019-11-24 21:57 ayong6 阅读(969) 评论(0) 推荐(1)