摘要: parseFloat() 函数可解析一个字符串,并返回一个浮点数。看清楚说明是操作字符串,如果是数值类型parseFloat([],x)会失去效果。 正确的用法:parseFloat().toFixed(x) 阅读全文
posted @ 2019-01-16 18:52 别动我的猫 阅读(1017) 评论(0) 推荐(0) 编辑
摘要: 注意区间值是 正负120$(document).on('mousewheel DOMMouseScroll', onMouseScroll);function onMouseScroll(e){ e.preventDefault(); var wheel = e.originalEvent.whee 阅读全文
posted @ 2019-01-16 15:53 别动我的猫 阅读(516) 评论(0) 推荐(0) 编辑