thinkjs / thinkjs Goto Github PK
View Code? Open in Web Editor NEWUse full ES2015+ features to develop Node.js applications, Support TypeScript.
Home Page: https://thinkjs.org/
License: MIT License
Use full ES2015+ features to develop Node.js applications, Support TypeScript.
Home Page: https://thinkjs.org/
License: MIT License
当找不到controller时,需要支持自定义执行的功能
将行为文件名tags.js改为tag.js
包括框架和APP的
设置多个cookie后,后面的cookie会覆盖掉前面的cookie
在 debug 模式下,每次访问数据库都会与数据库建立新的连接,而之前的连接并未断开,以致于多次访问,将会出现数据库连接数过多,而无法访问的情况
将http.query和http.get区分开来
http.query 只包含URL上?后面的参数
http.get额外包括路由解析中的参数
如:/index/index/page/2?arg=1
http.query = {arg: 1}
http.get = {arg:1, page: 2}
"/^category/(.+?)/?$/": "index/cate/?cate=:1&page=1"
如果cate后面有/,则路由识别会有问题。
传递的变量为:http, config
模版里可以直接使用http.xxx, config.yyy
inherit("Home/BaseController", function(){})
==>
Controller("Home/BaseController", function(){})
在Conf/tag.js里定义了自定义tag,但没生效
现在是自动起服务的方式,无法支持命令行直接调用
会出现循环引用执行的错误,[RangeError: Maximum call stack size exceeded]
如果session值为空,获取会出错
如:E88TTDTVfXF1JgXvpQ9k6RIQRmYu9gVJ.X4SihU6CK2GLJ6fWZXm/EfpU7X3TqpKjILYIYBSlGi0.json
由于文件名过长导致生成文件失败。
如 index/rss
把分组识别为index rss识别为controller了
现在只能起单个进程,可以根据cpu的数据起多个进程来加速
如:
this.header({
Content-Type: "xxx",
otherHeader: "yyy"
})
方便对请求参数进行过滤
现在在Controller里必须通过D("Post") 来获取Post模型
可以添加一个 this.model()的方法来获取
this.echo和this.end方法没有自动发送Content-Type的头信息
导致this.echo部分HTML代码时直接以源码形式展现了
controller里在一个then方法里调用redirect失效
已经在使用thinkjs的产品可以在这里列出
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.