![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaScript
文章平均质量分 81
WEB_Mr.Liu
这个作者很懒,什么都没留下…
展开
-
JS获取当前时间的年、月、日、时间等
var date = new Date(); date .getYear(); //获取当前年份(2位) date .getFullYear(); //获取完整的年份(4位) date .getMonth(); //获取当前月份(0-11,0代表1月) date .getDate(); //获取当前日(1-31) date .getDay(); //获取当前星期X(0-6,0代表星期天) date .getTime(); //获取当前时间(从1970.1.1开始的毫秒数) date .getH原创 2020-12-02 17:16:20 · 41642 阅读 · 1 评论 -
鼠标移入显示提示框类似title属性功能
bindEvent: function () { var _this = this; _this.$element.find('.table-item-list .special').on('mouseover',function(e){ var val = $(this).text(); var thisWidth = $(this).width(); // 获取div 盒子的宽...原创 2020-11-27 11:26:22 · 1405 阅读 · 0 评论