- 博客(6)
- 收藏
- 关注
原创 jQuery UI Slider组件 设置两个tooltip
var initialValue = [2, 10];var sliderTooltip = function (event, ui) { for (var i = 0; i < initialValue.length; i++) { var curValue = ui.value || initialValue[i]; var target
2017-10-22 22:18:38
911
1
原创 js 数组复制(浅复制)……
1.JavaScript的数据类型 (1)基本类型 Undefined、Null、Boolean、Number、String、Symbol (new in ES 6),变量是直接按值存放的,存放在栈内存中的简单数据段,可以直接存放 (2)引用类型 存放在堆内存中的对象,变量保存的是一个指针,这个指针指向另一个位置。当需要访问引用类型(如对象,数组,方法等)的值时,首先从栈中获得该对象的地址指
2017-10-20 17:12:43
460
原创 清除浏览器双击的阴影效果
-webkit-user-select: none; /* Chrome/Safari */ -moz-user-select: none; /* Firefox */-ms-user-select: none; /* IE10+ *//* Rules below not implemented in browsers yet */-o-user-select: none;us
2017-08-05 11:32:13
361
原创 js 拖拽元素并重新定位
(function () { var dragging = false; var boxX, boxY, mouseX, mouseY, offsetX, offsetY; var box = document.getElementById('box'); box.onmousedown = down; document.onmousemove = move; document.
2017-08-02 16:41:10
727
原创 js不刷新页面,改变url
loadpage的时候有对URL Parameter的判断浏览器窗口有一个history对象,用来保存浏览历史。检查浏览器是否支持 if (window.history){ // 支持History API } else { // 不支持 }history对象提供了一系列方法,允许在浏览历史之间移动。其中包括 history.back(); history.forward()
2017-07-24 18:59:00
8851
3
原创 bootstarp中modal垂直居中
bootstarp中modal垂直居中在源代码adjustDialog中添加Modal.prototype.adjustDialog = function () { var modalIsOverflowing = this.$element[0].scrollHeight > document.documentElement.clientHeight this.$element.cs
2017-07-05 18:56:43
395
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人