[英]coffeescript and sugarjs ~ issue with number (50).pad(5)
I am using sugarjs. 我正在使用sugarjs。 When using the numbers api it doesn't go well with coffeescript.
当使用数字api时,它与coffeescript不太匹配。 I am thinking it is the brackets..what is a better way to do this.
我认为这是括号。什么是更好的方法呢?
(50).pad(5) gets transalated to 50..pad(5) (50).pad(5)转换为50..pad(5)
how to keep the brackets intact. 如何保持括号完整。
thanks 谢谢
Why do you want to keep the brackets intact ? 为什么要保持括号完整? They're not needed.
不需要它们。 It works fine this way
这样很好
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.