various --- width height x y

  • w:
    clientWidth = padding + width
    offsetWidth = padding + width + border

  • scroll
    scrollTop scrollLeft

var scrollTop=document.documentElement.scrollTop || document.body.scrollTop

scrollHeight

  • x
    clientX
    screenX
    offsetX
    pageX

  • top
    offetTop

  • jquery

$(window).scrollTop()

$('#app').offset()

$(window).height()

...innerHeight()

...outerHeight()

...outerHeight(true)
  • other
    zepto使用npm安装,默认只有几个核心模块,动画没有,touch事件也没有,这是自我动手丰衣足食

  • other2
    git 设置新的仓库地址

git remote rm origin // 删除

git remote add origin // 添加
  • other3
    命令行或终端查看指令帮助
    -h
node -h

vue -h

你可能感兴趣的:(various --- width height x y)