简体   繁体   中英

coffeescript and sugarjs ~ issue with number (50).pad(5)

I am using sugarjs. When using the numbers api it doesn't go well with 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)

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM