会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Sueing
博客园
首页
新随笔
联系
订阅
管理
2018年8月21日
JavaScript 有用的代码片段和 trick
摘要: 本文取自于Jenemy https://segmentfault.com/a/1190000011557368 浮点数取整 const x = 123.456; x >> 0;//123 x | 0;//123 ~~x;//123 Math.floor(x);//123 对于负数的处理不一样 Mat
阅读全文
posted @ 2018-08-21 16:14 Sueing
阅读(169)
评论(0)
推荐(0)
编辑
公告
[URL=https://info.flagcounter.com/X5yY][IMG]https://s05.flagcounter.com/map/X5yY/size_s/txt_000000/border_CCCCCC/pageviews_0/viewers_0/flags_0/[/IMG][/URL]