Skip to content
maltose edited this page May 17, 2016 · 1 revision

format 格式化字符串

format('hello {name}', {name: 'word'})

is

is.weixin();

isElementInViewport isElementOverViewport

isElementInViewport(dom)// 判断dom是否全部在视窗内
isElementOverViewport(dom)// 判断dom是否存在部分在视窗内

param

param({id:1, status: 1}) // 得到 id=1&status=1 的url参数字符串
Clone this wiki locally