- Former Node.js developer in Tencent Video.
- Former Developer in Wechat Minigame
- Former maintainer of Tencent/puerts
- 前腾讯视频Node.js开发
- 前微信开放平台工程师(小游戏)
- 前Tencent/puerts维护人。
The page of chapter3 named "detail" can't work as the other page in this directory.
以下问题希望能得到老师解答,谢谢
\chapter3\4.list\node\template.js
第十行:`(function render(template) {
其中template参数并未得到使用,所以直接function render()就可以了吧?
第18~20行:
(function (relativePath, data) {
return createTemplate(path.dirname(templatePath) + '/' + relativePath)(data);
}) --------这段代码作为render()的入力参数应该也是不需要的,所以直接换成()吧?
chapter5中对于应用的分层解耦,感觉还不够完善。
比如,有http和geek-rpc.js两种最基本的请求协议。在应用初始化时被加载。
但是它和data数据源只能是一对一的关系,比如在data中如果有两个http请求的数据源,分别对
应不同的IP地址。那么在compile http的requestor时会设置的ip地址,那么后设置的ip地址就会
覆盖之前设置的ip地址。两个请求会发往同一个ip地址,造成必有一个失败。(因为两个http请
求都用一个http请求器,虽然数据源的config彼此独立,在request-factory.js不会互相影响,但
requestor的complie方法中被设定的对象如http的url和geek-rpc的schemas,easysock却会被后来的
设定覆盖)
老师您好,用node做纯后端的业务开发,在课程中似乎并没有提到。是因为不太会用node做纯后端的服务吗?通常在比如您这样体量的公司中node更多的是做什么业务呢?仅是ssr相关吗?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.