![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
ImpressedGoddess
To simple, to wonderful
展开
-
ajaxFileUpload.js插件使用
$.ajaxFileUpload({ url: url.saveOrUpdate, type: 'POST', secureuri: false, //是否需要安全协议,一般设置为false fileElementId: 'fileId', //文件input的ID dataType: 'json', d原创 2017-01-08 15:22:04 · 229 阅读 · 0 评论 -
js 处理日期格式化
格式化时间戳/** * 时间戳转换 */var getLocalTime = function(value,type) { if (value == null || value == '') { return ''; } var dt; if (value instanceof Date) { dt = value; }原创 2016-04-11 16:52:20 · 443 阅读 · 0 评论 -
jquery序列化表单数据
$.fn.serializeObject = function () { var o = {}; var a = this.serializeArray(); $.each(a, function () { if (o[this.name]) { if (!o[this.name].push) { o[t原创 2017-01-08 15:27:21 · 310 阅读 · 0 评论 -
js导航栏高亮显示
//menuId-导航栏id,classCur-高亮显示的样式,activeNode-需要被样式应用的标签function highURL(menuId, classCur, activeNode) { if (!document.getElementById) return false; if (!document.getElementById(menuId))原创 2017-01-08 15:33:09 · 760 阅读 · 0 评论 -
jquery.nivo.slider轮播插件使用
//引入样式<link href="https://cdn.bootcss.com/jquery-nivoslider/3.2/nivo-slider.min.css" rel="stylesheet">//引入js<script src="https://cdn.bootcss.com/jquery-nivoslider/3.2/jquery.nivo.slider.min.js"></sc原创 2017-01-08 15:57:38 · 1424 阅读 · 0 评论 -
js获取浏览器滚动条宽度
function getScrollbarWidth() { var oP = document.createElement('p'), styles = { width: '10px', height: '10px', overflowY: 'scroll', }, i, scrollbarWi转载 2017-02-22 20:51:39 · 4883 阅读 · 1 评论 -
html锚点定位不准确问题
在主体内容前加个这个样式的暗锚即可.target-fix { position: relative; top: -44px; // 偏移值 display: block; height: 0; overflow: hidden; }转载 2017-02-25 20:15:30 · 2996 阅读 · 0 评论