随笔分类 -  html/js

摘要:最近踩了一个坑,mark一下toFixed四舍五入问题,详见代码: 资料:JS处理数据四舍五入,tofixed与round的区别 阅读全文
posted @ 2018-01-31 10:29 andy_chan 阅读(309) 评论(0) 推荐(0)
摘要:代码: 结果: 158==397917763 1==16777215==390611388207==198958881==390611388==1525825==1979574724==124634137==197957472==773271==124127374232==2932959818==1 阅读全文
posted @ 2017-08-16 17:28 andy_chan 阅读(893) 评论(0) 推荐(0)
摘要:最近把左边的传统模式,换成了右边通过js直接调api拿数据并渲染,于是变出现了ajax的跨域问题:XMLHttpRequest cannot load http://api.abc.com/?s=user/account_log&v=1.0. No 'Access-Control-Allow-Ori 阅读全文
posted @ 2017-05-05 14:00 andy_chan 阅读(11293) 评论(0) 推荐(0)
摘要:http://www.zhihu.com/question/20446741 阅读全文
posted @ 2016-09-02 18:38 andy_chan 阅读(1657) 评论(0) 推荐(0)