• <tfoot id='HWWuQ'></tfoot>

    1. <i id='HWWuQ'><tr id='HWWuQ'><dt id='HWWuQ'><q id='HWWuQ'><span id='HWWuQ'><b id='HWWuQ'><form id='HWWuQ'><ins id='HWWuQ'></ins><ul id='HWWuQ'></ul><sub id='HWWuQ'></sub></form><legend id='HWWuQ'></legend><bdo id='HWWuQ'><pre id='HWWuQ'><center id='HWWuQ'></center></pre></bdo></b><th id='HWWuQ'></th></span></q></dt></tr></i><div id='HWWuQ'><tfoot id='HWWuQ'></tfoot><dl id='HWWuQ'><fieldset id='HWWuQ'></fieldset></dl></div>

      1. <legend id='HWWuQ'><style id='HWWuQ'><dir id='HWWuQ'><q id='HWWuQ'></q></dir></style></legend>
          <bdo id='HWWuQ'></bdo><ul id='HWWuQ'></ul>
      2. <small id='HWWuQ'></small><noframes id='HWWuQ'>

        如何在 Locomotivejs 中设置咖啡脚本?

        时间:2024-04-18
          <legend id='VFGSs'><style id='VFGSs'><dir id='VFGSs'><q id='VFGSs'></q></dir></style></legend>

          <tfoot id='VFGSs'></tfoot>
            <tbody id='VFGSs'></tbody>

          <i id='VFGSs'><tr id='VFGSs'><dt id='VFGSs'><q id='VFGSs'><span id='VFGSs'><b id='VFGSs'><form id='VFGSs'><ins id='VFGSs'></ins><ul id='VFGSs'></ul><sub id='VFGSs'></sub></form><legend id='VFGSs'></legend><bdo id='VFGSs'><pre id='VFGSs'><center id='VFGSs'></center></pre></bdo></b><th id='VFGSs'></th></span></q></dt></tr></i><div id='VFGSs'><tfoot id='VFGSs'></tfoot><dl id='VFGSs'><fieldset id='VFGSs'></fieldset></dl></div>
          • <bdo id='VFGSs'></bdo><ul id='VFGSs'></ul>
              1. <small id='VFGSs'></small><noframes id='VFGSs'>

                1. 本文介绍了如何在 Locomotivejs 中设置咖啡脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如何在 Locomotivejs 中设置 coffeescript.

                  What should I do to set coffeescript in Locomotivejs.

                  这似乎很容易,但我想不通.

                  It seems very easy, but I couldn't figure that out.

                  我在all.js"中设置了选项,没有运气.

                  I set options in "all.js", without luck.

                  我想我已经快到了,或者很远才能做到这一点.:(

                  I think I'm almost there or very far to get it right. :(

                  this.set("options",{coffee:true});
                  

                  感谢任何帮助.

                  推荐答案

                  您需要添加一个 server.js 文件并使用 CoffeeScript 支持启动 Locomotive,如下所示:

                  You'll want to add a server.js file and boot Locomotive with CoffeeScript support, like so:

                  locomotive = require('locomotive')
                  
                  locomotive.boot('.', 'development', {"coffeeScript": true}, (err, server) -> 
                    throw err if (err)
                  
                    server.listen(3000, 'localhost', ()-> 
                      addr = this.address()
                      console.log('listening on %s:%d', addr.address, addr.port);
                    )
                  )
                  

                  启动应用程序:

                  $ node server
                  

                  此拉取请求中有更多信息:https://github.com/jaredhanson/locomotive/pull/44

                  There's more info in this pull request: https://github.com/jaredhanson/locomotive/pull/44

                  将在即将发布的版本中添加对 lcm 命令行的 --coffee 选项的支持.

                  Support for a --coffee option to the lcm command line will be added to an upcoming release.

                  这篇关于如何在 Locomotivejs 中设置咖啡脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:悬停时将链接图像向上移动 5px 下一篇:将数据点动态添加到人力车图

                  相关文章

                      <bdo id='P7qPj'></bdo><ul id='P7qPj'></ul>

                    <i id='P7qPj'><tr id='P7qPj'><dt id='P7qPj'><q id='P7qPj'><span id='P7qPj'><b id='P7qPj'><form id='P7qPj'><ins id='P7qPj'></ins><ul id='P7qPj'></ul><sub id='P7qPj'></sub></form><legend id='P7qPj'></legend><bdo id='P7qPj'><pre id='P7qPj'><center id='P7qPj'></center></pre></bdo></b><th id='P7qPj'></th></span></q></dt></tr></i><div id='P7qPj'><tfoot id='P7qPj'></tfoot><dl id='P7qPj'><fieldset id='P7qPj'></fieldset></dl></div>

                    <legend id='P7qPj'><style id='P7qPj'><dir id='P7qPj'><q id='P7qPj'></q></dir></style></legend>
                    1. <tfoot id='P7qPj'></tfoot>

                      <small id='P7qPj'></small><noframes id='P7qPj'>