上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 29 下一页
摘要: 2019-12-18 10:35:27 逻辑层初步介绍 除了视图层(即我们所看到的页面),小程序逻辑层各部分的功能如下: index.js 逻辑代码 index.json 页面配置文件 index.wxml 页面结构 index.wxss 表示index.wxml结构的样式 app.js app.j 阅读全文
posted @ 2019-12-18 10:48 JasonPeng1 阅读(1509) 评论(0) 推荐(0)
摘要: 2019-12-18 08:44:49 阅读全文
posted @ 2019-12-18 08:57 JasonPeng1 阅读(129) 评论(0) 推荐(0)
摘要: 2019-12-17 13:08:33 阅读全文
posted @ 2019-12-17 13:09 JasonPeng1 阅读(266) 评论(0) 推荐(0)
摘要: 2019-12-17 10:14:57 /** * Module dependencies. */ var http = require('http') , fs = require('fs') /** * Create our server. */ var server = http.create 阅读全文
posted @ 2019-12-17 10:35 JasonPeng1 阅读(215) 评论(0) 推荐(0)
摘要: 2019-12-16 21:04:14 require('http').createServer(function (req, res) { res.writeHead(200); res.end('Hello World'); }).listen(3000); require('http').cr 阅读全文
posted @ 2019-12-17 08:47 JasonPeng1 阅读(235) 评论(0) 推荐(0)
摘要: 2019-12-16 20:12:38 require('http').createServer(function(req,res){ res.writeHead(200,{'Content-Type':'text/html'}); res.end('<h1>Hello World</h1>'); 阅读全文
posted @ 2019-12-16 21:04 JasonPeng1 阅读(214) 评论(0) 推荐(0)
摘要: 2019-12-16 17:05:54 var fs = require('fs'); fs.readdir(__dirname,function(err,files){ console.log(files); }); /** * Module dependencies. */ var fs = r 阅读全文
posted @ 2019-12-16 20:08 JasonPeng1 阅读(268) 评论(0) 推荐(0)
摘要: 2019-12-16 16:32:11 console.log(1); process.nextTick(function(){ console.log(3); }); console.log(2); module_a.js exports.name = 'john'; exports.data = 阅读全文
posted @ 2019-12-16 17:05 JasonPeng1 阅读(131) 评论(0) 推荐(0)
摘要: 2019-12-16 13:20:53 1.1 一个典型的 Node Web 应用程序 大体上来说,Node 和 JavaScript 的优势之一是它们的单线程编程模型。多个线程一般会引入 bug,尽管一些新的编程语言,包括 Go 和 Rust,试图提供更加安全的并发工具,但 Node 仍然保 留了 阅读全文
posted @ 2019-12-16 16:30 JasonPeng1 阅读(553) 评论(0) 推荐(0)
摘要: 2019-12-16 13:14:51 GitHub:https://github.com/greatabel/JsRepository/tree/master/03Learning%20Vue.js%202 阅读全文
posted @ 2019-12-16 13:21 JasonPeng1 阅读(223) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 29 下一页