![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端学习
天呐少爷
我又觉得我行了
展开
-
【JS-BUG】JS自动裁剪16位以上的int
1、问题今天遇到个神奇的问题,后端传给前端值为xxxxxxxxxxxxxx0001(一共18位,最后一位为1),经过前端处理再传到后端时,接收到的值为xxxxxxxxxxxxxx0000(还是18位,但是最后一位由1变成了0),就很奇怪,这是什么鬼?2、原因查了挺多资料发现原来是js数字最长为16位,xxxxxxxxxxxxxx0001是18位,所以最后两位自动裁剪变为了03、办法解决方法也很简单,只要在Java后台传数值时,将其变为String类型的即可。原来的前端代码<inpu原创 2021-05-20 14:50:28 · 444 阅读 · 0 评论 -
【JS-技术】前端页面前进、后退、刷新
<input type=button value=前进 onclick="window.history.go(1)"><input type=button value=前进 onclick="window.history.forward()"><input type=button value=后退 onclick="window.history.go(-1)"><input type=button value=后退 onclick="window.his原创 2021-05-20 14:41:56 · 639 阅读 · 0 评论