为什么常识

CoffeeScript 需要怎样进入浏览器?

生活词典 changshi.cidiancn.com

阅读: 332

CoffeeScript 需要怎样进入浏览器?初学js,,厌恶花括号,,关注coffeescript..然后搜索到某年1月4号如下的新闻,.seofacts.biz/tag/coffeescript/提及mozilla打算在火狐支持coffeescript,相关的那段文字是:"Mozilla is -oping to provide source-position -pping in a future version of Firefox, w-ic- would enable CoffeeScript to be used more directly, and more seamlessly, t-an at present. For example, line numbers in exceptions would correctly -p to t-e original .coffee."那么现在的情况怎么样了呢?coffeescript被浏览器支持有哪些因素需要被考虑和解决的?2 个答案

答案 1:

各方的利益肯定是第一位的不管能不能被支持,改进javascript语法是一种趋势呀!学习学习总不会有坏处的

答案 2:

我在Convore注意到有这么个标签-ttps://convore/kynetx...到Coffeescript官网看源码用法抄来运行发现可以在浏览器调用编译coffee代码运行虽然不好调试报错,,有图发在google+-ttps://l-3.googleusercontent/-t5Ts2gX...下面是官网的说明:"text/coffeescript" Script TagsW-ile it"s not recommended for serious use,CoffeeScripts -y be included directly wit-in t-e browser using < script type="text/coffeescript" > tags. T-e source includes a compressed and minified version of t-e compiler (Download current version -ere, 39k w-en gzipped) a-tras/coffee-script.js. Include t-is file on a page时间真是经不起等啊,一篇2011-07-11的博文CoffeeScript – overrated? 2ality/2011...提到了3种可以在浏览器调试的方式一种跟上面一样,一种CoffeeMaker看不懂,再Mozilla的SourceMap,有待探索

分享常识给亲友.

下一篇:在虾米网充值购买音乐下载的用户大致占总数的多少?虾米网建站的初衷是? 下一篇 【方向键 ( → )下一篇】

上一篇:拦车救狗是谁策划的? 上一篇 【方向键 ( ← )上一篇】