随笔分类 - JavaScript
摘要:javascript清空file域: var file = $("#MyFile") ; file.after(file.clone().val("")); file.remove();
阅读全文
摘要:<?php echo 0.01*94 - 0.94; 1.1102230246251565e-16 这是由于浮点型后续小数点中的0导致的 正确的做法是 <?php echo round(0.01*94,2) - round(0.94,2);
阅读全文
摘要:一、JQuery 如果是用JQuery的话,可以用inArray()函数: jquery inarray()函数详解jquery.inarray(value,array)确定第一个参数在数组中的位置(如果没有找到则返回 -1 )。determine the index of the first pa
阅读全文
摘要:16777215 ^ 2463272603异或运算 在windows下 node.js -1842515612 php -1842515612 在linux/Mac下 node.js -1842515612 php 2452451684 猜测可能是由于不同服务器下,二进制编码方式不同,具体原因不明,
阅读全文

浙公网安备 33010602011771号