In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "what are the functions of ThinkJS". In daily operation, I believe many people have doubts about what functions ThinkJS has. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for you to answer the doubts about "what are the functions of ThinkJS?" Next, please follow the editor to study!
Thinkjs is an open source Node.js framework of Qi Dance Troupe, which is mainly designed and developed by welefen. The framework uses async/await to completely solve the problem of asynchronous callback. The best thing about Thinkjs is that it can be quickly started, easy to develop, powerful and easy to expand!
The Origin of thinkjs
There is no better framework under Node.js than express, but express does not solve the development inconvenience caused by asynchronism. At the same time, the function provided by express is too simple, and there is a lot of code to be written in the actual project. Although the koa framework uses es6generatorfunction to solve some of the problems caused by asynchrony, it needs to be run under unstable version 0.11.x.
In view of this, the bottom layer of thinkjs uses Promise to solve the problem of asynchronous nesting, while referring to the excellent PHP framework ThinkPHP, which makes the development under Node.js more simple and efficient.
Thinkjs features:
1. The ES6/7 feature is supported:
You can directly use ES6/7 (GeneratorFunction,Class,Async&Await) and other features in the project, with the help of Babel compilation, can run stably in the Node.js environment.
two。 Support rich databases:
Support Mysql, SQLite, MongoDB and other common databases, provide a lot of easy-to-use, highly encapsulated methods to automatically prevent SQL injection.
3.Hook&Middleware:
The system provides a large number of hooks and middleware, which can easily control and modify the request.
4.RESTAPI:
Automatically generate RESTAPI without writing any code. It can also be customized according to the interface, hiding part of the data and controlling permissions.
5. Support for WebSocket:
Common WebSocket clients such as socket.io and Sockjs are supported, while the server code is always consistent.
6. Rich Adapter:
Quickly switch functions such as Cache, Store, Session, Template, etc., regardless of which method to use.
7. Automatic updates:
In development mode, the file takes effect immediately after modification, and there is no need to restart the Node.js service.
8. The command line invokes:
Support command line mode to call Action to facilitate the execution of scheduled tasks.
At this point, the study on "what are the functions of ThinkJS" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.