![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js随笔
文章平均质量分 68
Carrot_lin
程序猿一枚
展开
-
JS随笔-HTML5图片轮播
jQuery部分$(".route_page1_img_slide img").swipe({//手动翻图片 swipe : function(event, direction, distance) { var height = con.children(":first").outerHeight(true); var index = $(this).attr("rel");原创 2016-03-23 08:41:24 · 1730 阅读 · 0 评论 -
jQuery时间验证和转换为标准格式的时间
var TimeObjectUtil;/** * @title 时间工具类 * @note 本类一律违规验证返回false * @author {boonyachengdu@gmail.com} * @date 2013-07-01 * @formatter "2013-07-01 00:00:00" , "2013-07-01" */TimeObjectUtil = {转载 2016-04-29 16:45:03 · 1544 阅读 · 0 评论 -
(a == !a )可以为true!
今天从同事那里了解一个有趣的jsvar a =[];alert(a == !a);结果为true。右边a是一个空数组,为truth,运算符优先!a为false,相当于0左边a跟0做比较时,隐式转换为0,所以结果为true。java中其实也有这样的等式float a = float.NaNa != a 也为true因为float.NaN是个不确定的数有一定范围原创 2017-01-19 15:09:08 · 867 阅读 · 0 评论