ThinkJS 2.0 中文文档
����������� ThinkJS 2.0 Documentation ���� �� �� �� ES6/7 ������� ���������� ES6 �� class , export , let �� ES7 �� async � await ���� ���������� Session ���������� async/await �������������� ����������������������������� Node.js ���������� ���� //user controller, home/controller/user.js export default class extends think.controller.base { //login action async loginAction(self){ mage', http => { ... }); JavaScript src/common/config 'use strict'; /** * config */ export default { //key: value }; JavaScript ���������������� error.js �������������������������0 码力 | 238 页 | 1.87 MB | 1 年前3Blender NIF Plugin Documentation Release 2.6.0a0.dev4
still a work in progress. The Blender Nif Plugin is a Blender addon that adds support for import and export NIF files. The Nif Plugin allows the user to create custom content for a variety of games which use plugin .zip file downloaded earlier. 6. Under Categories (left), select Import-Export. 7. Tick the empty box next to Import-Export: NetImmerse/Gambryo nif format. You may have to scroll down a bit first. Preferences window. 9. The nif importer and exporter should now show under File > Import and File > Export. 10. Do: File > Save User Settings (unless you enjoy enabling the addon every time when blender0 码力 | 112 页 | 107.36 KB | 1 年前3Blender NIF Plugin Release 2.6.0a0.dev4
still a work in progress. The Blender Nif Plugin is a Blender addon that adds support for import and export NIF files. The Nif Plugin allows the user to create custom content for a variety of games which use plugin .zip file downloaded earlier. 6. Under Categories (left), select Import-Export. 7. Tick the empty box next to Import-Export: NetImmerse/Gambryo nif format. You may have to scroll down a bit first. Preferences window. 9. The nif importer and exporter should now show under File > Import and File > Export. 10. Do: File > Save User Settings (unless you enjoy enabling the addon every time when Blender0 码力 | 113 页 | 102.69 KB | 1 年前3Blender NIF Plugin Release 2.6.0a0.dev4
still a work in progress. The Blender Nif Plugin is a Blender addon that adds support for import and export NIF files. The Nif Plugin allows the user to create custom content for a variety of games which use plugin .zip file downloaded earlier. 6. Under Categories (left), select Import-Export. 7. Tick the empty box next to Import-Export: NetImmerse/Gambryo nif format. You may have to scroll down a bit first. Preferences window. 9. The nif importer and exporter should now show under File > Import and File > Export. 3 Blender NIF Plugin, Release 2.6.0a0.dev4 10. Do: File > Save User Settings (unless you enjoy0 码力 | 81 页 | 266.16 KB | 1 年前3Blender NIF Plugin Documentation Release 2.6.0a0.dev4
still a work in progress. The Blender Nif Plugin is a Blender addon that adds support for import and export NIF files. The Nif Plugin allows the user to create custom content for a variety of games which use plugin .zip file downloaded earlier. 6. Under Categories (left), select Import-Export. 7. Tick the empty box next to Import-Export: NetImmerse/Gambryo nif format. You may have to scroll down a bit first. Preferences window. 9. The nif importer and exporter should now show under File > Import and File > Export. 10. Do: File > Save User Settings (unless you enjoy enabling the addon every time when blender0 码力 | 81 页 | 267.59 KB | 1 年前3ThinkJS 2.1 Documentation
callbacks problem by using async/await or */yield features. We’ve used ES6 features like class , export , let and ES7 features like async/await in this example. Database queries and Session writing Started Introduction Features Using ES6/7 features //user controller, home/controller/user.js export default class extends think.controller.base { //login action async loginAction(self){ mage', http => { ... }); JavaScript src/common/config 'use strict'; /** * config */ export default { //key: value }; JavaScript src/common/controller src/common/runtime src/home src/home/logic0 码力 | 148 页 | 1.69 MB | 1 年前3ThinkJS 2.2 Documentation
problem by using async/await or */yield features. //user controller, home/controller/user.js export default class extends think.controller.base { //login action async loginAction(self){ session('userInfo', result); return this.success(); } } We’ve used ES6 features like class , export , let and ES7 features like async/await in this example. Database queries and Session writing route.js, hook.js and locale.js must stay within this folder. 'use strict'; /** * config */ export default { //key: value }; Within this folder, you should put the common controller files. For0 码力 | 156 页 | 2.62 MB | 1 年前3ThinkJS 2.0 Documentation
callbacks problem by using async/await or */yield features. We’ve used ES6 features like class , export , let and ES7 features like async/await in this example. Database queries and Session writing Started Introduction Features Using ES6/7 features //user controller, home/controller/user.js export default class extends think.controller.base { //login action async loginAction(self){ mage', http => { ... }); JavaScript src/common/config 'use strict'; /** * config */ export default { //key: value }; JavaScript src/common/controller src/common/runtime src/home src/home/logic0 码力 | 141 页 | 1.61 MB | 1 年前3ThinkJS 2.2 中文文档
所有的特性,无需担心哪些特性当前版本不支 持。尤其是使用 async/await 或者 */yield 来解决异步回调的问题。 //user controller, home/controller/user.js export default class extends think.controller.base { //login action async loginAction(self){ //如果是get请求,直接显示登录⻚页⾯面 await this.session('userInfo', result); return this.success(); } } 上面的代码我们使用了 ES6 里的 class , export , let 以及 ES7 里的 async/await 等特性,虽然 查询数据库和写入 Session 都是异步操作,但借助 async/await ,代码都是同步书写的。最后 使用 Babel src/common/config 配置文件,这里放一些通用的配置。 其中:路由配置、hook 配置、本地化配置等必须放在这里。 'use strict'; /** * config */ export default { //key: value }; src/common/controller 控制器,放一些通用的控制器。其中 error.js 里错误处理的不同行为,项目里可以根据需要进0 码力 | 277 页 | 3.61 MB | 1 年前3KiCad 8.0 Command-Line Interface
subcommand may have its own subcommands and arguments. For example, to export Gerber files from a PCB you could run kicad-cli pcb export gerbers example.kicad_pcb . You can add the --help or -h flag to usage information about the pcb subcommand, and kicad-cli pcb export gerbers -h prints usage information specifically for the pcb export gerbers subcommand. Footprint The fp subcommand exports footprints footprint file format. Footprint export The fp export svg command exports one or more footprints from the specified library into SVG files. Usage: kicad-cli fp export svg [--help] [--output OUTPUT_FILE]0 码力 | 27 页 | 373.33 KB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100