上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
摘要: #1.10054 fatal: unable to access 'https://github.com/QinCongH/learning-code.git/': OpenSSL SSL_read: Connection was reset, errno 10054 解决: git config 阅读全文
posted @ 2021-11-29 09:04 禾耳 阅读(64) 评论(0) 推荐(0)
摘要: request 1.request.method 获取视图请求方法 if(req.method=="get"){...} 2.request.url 获取当前url地址 ##3.request.body 获取post请求数据(依赖模板引擎) ##4.request.query 获取get请求数据(依 阅读全文
posted @ 2021-11-28 23:55 禾耳 阅读(151) 评论(0) 推荐(0)
摘要: 需求 实现数据的添加 准备 下载node 新建文件夹 public(存放css,js,img等文件),view(存放html文件),app.js(node 入口文件) 步骤 静态页面准备 显示动态页面 实现页面跳转 使用http模块创建服务器 使用url获取根目录 req.url 使用fs模块获取h 阅读全文
posted @ 2021-11-28 23:28 禾耳 阅读(65) 评论(0) 推荐(0)
摘要: OS path ##1.path.basename(path[, ext]) 参数解析如下: path: ext: 可选的文件扩展名 返回: 用于获取路径的最后一部分 console.log(path.basename("/node/base/path/xx/js/index.js")); // 最 阅读全文
posted @ 2021-11-28 23:25 禾耳 阅读(44) 评论(0) 推荐(0)
摘要: #准备 Api说明 百度搜索命令中的参数 必备参数: wd——查询的关键词(Keyword) pn——显示结果的页数(Page Number) cl——搜索类型(Class),cl=3为网页搜索 可选参数: rn——搜索结果显示条数(Record Number),取值范围在10--100条之间,缺省 阅读全文
posted @ 2021-11-28 16:39 禾耳 阅读(901) 评论(0) 推荐(1)
摘要: #Number数字 ##1.字符串转换为数字的方法: parseInt/Number #String字符串 ##1.replace() 理解 replace方法可以将视图中获取的内容替换成最终数据 stringObject.replace(regexp/substr,replacement) //我 阅读全文
posted @ 2021-11-28 00:05 禾耳 阅读(60) 评论(0) 推荐(0)
摘要: #代码演示 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>hangge.com</title> </head> <style> #durationBar{ border:solid 1px #164900; width:100 阅读全文
posted @ 2021-11-27 20:07 禾耳 阅读(397) 评论(0) 推荐(0)
摘要: #一.简介 使用nodejs编写应用程序主要使用: ##1.ECMAscript语法:变量,判断,循环等。 JS三大组成部分(ECMA/DOM(document)/BOM(window,location等)) ##2.内置核心模块:HTTP模块,fs文件操作,url路径,path路径模块,os操作系 阅读全文
posted @ 2021-11-25 19:26 禾耳 阅读(33) 评论(0) 推荐(0)
摘要: #1. 认识 是什么? node.js是Javascript的运行环境 能干嘛?前端脱离后端,直接通过Js写项目 去哪下?node.js官网 #2. 初体验(REPL) 1. read 阅读(读取js代码) 2.exec 执行(执行输出代码) 3.print 打印 (打印输出代码) 4.loop 循 阅读全文
posted @ 2021-11-25 13:55 禾耳 阅读(35) 评论(0) 推荐(0)
摘要: #1.简介 组件可以扩展 HTML 元素,封装可重用的代码。 组件系统让我们可以用独立可复用的小组件来构建大型应用. 2.创建局部组件 注册->配置->使用(只能在父组件中使用) ##使用方法 ###1)注册: var Child={ template:'<h1>子组件</h1>' } ###2)配 阅读全文
posted @ 2021-11-23 22:25 禾耳 阅读(32) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页