上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 1.组件的注册 也分为全局和局部注册, .app也是组件,组件也有父子关系 模板内容 可以用模板字符串`` 1.简单使用: <div id="example"> <!-- 2、 组件使用 组件名称 是以HTML标签的形式使用 --> <my-component></my-component> </d 阅读全文
posted @ 2020-09-21 10:33 otome 阅读(172) 评论(0) 推荐(0) 编辑
摘要: const 只能放常量!!!!!!!!!!!!!!!! 基础使用: <body> <div id='vue'> <div v-clock>{{msg}}</div> <div v-text='msg'></div> <div v-html='html'></div> </div> <script s 阅读全文
posted @ 2020-09-21 10:26 otome 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 知识 $.ajax 是在jquery.min里的jquery是没有的 1.$.ajax()方法概述 $.ajax({ type: 'get', url: 'http://www.example.com', data: { name: 'zhangsan', age: '20' }, contentT 阅读全文
posted @ 2020-09-21 10:25 otome 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 1.body-parser 处理客户端向服务端传过来的post参数,不能处理formdata对象 2.form.parse(req,(err,fileds,files) fileds 普通请求参数,files 文件上传参数 4.this.files[0] this.files如果没有特殊请求的话,只 阅读全文
posted @ 2020-09-21 10:24 otome 阅读(114) 评论(0) 推荐(0) 编辑
摘要: ajax 概念 1.Ajax 技术需要运行在网站环境中才能生效,当前课程会使用Node创建的服务器作为网站服务器。 2.Ajax的使用 1.创建 Ajax 对象 var xhr = new XMLHttpRequest(); 2.告诉 Ajax 请求地址以及请求方式 xhr.open('get', 阅读全文
posted @ 2020-09-21 10:23 otome 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 1.serializeArray()的用法 获取去表单内容 //serializeArray()获取表单中的内容但是结果 [{name:'email',value:'122@qq.com'}] [{name:'password',value:'123456'}] 很弱智 //变成Json对象 fun 阅读全文
posted @ 2020-09-21 10:17 otome 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 如果是push const originalReplace = VueRouter.prototype.push VueRouter.prototype.push = function push(location) { return originalReplace.call(this, locati 阅读全文
posted @ 2020-09-20 15:13 otome 阅读(498) 评论(0) 推荐(0) 编辑
摘要: Vue.prototype.$xxx=axios或Vue.prototype.$xxx=Message 阅读全文
posted @ 2020-09-19 11:08 otome 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 使用@keyup.enter.native就可以触发了 阅读全文
posted @ 2020-09-19 10:58 otome 阅读(937) 评论(0) 推荐(0) 编辑
摘要: 一、Express的认识 1.Express框架是什么 Express是一个基于Node平台的web应用开发框架,它提供了一系列的强大特性,帮助你创建各种Web应用。我们可以使用 npm install express 命令进行下载。 2.Express框架特性 1.提供了方便简洁的路由定义方式 2 阅读全文
posted @ 2020-08-16 11:36 otome 阅读(985) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页