js函数封装-位置的移动
function getStyle(obj, attr) {
if (typeof getComputedStyle === ‘function’) {
return getComputedStyle(obj)[attr];
} else {
return obj.currentStyle[attr];
}
}
// 参数:元素,目标,属性,回调
function move(obj, target...
原创
2019-01-08 21:43:42 ·
212 阅读 ·
0 评论