.wrapper
.wrapper( element:String | Element ) : Element | self
获取/设置包装器元素。
参数
元素: 字符串 | 元素
应该用作包裹器的元素。你可以使用类似的选择器文本
"#wrapper"
或者一个元素引用。
返回值:Element | self
包裹器元素(或者如果作为设置器使用,则返回ScrollSmoother实例)
细节
获取/设置包装器元素。
获取器
let wrapper = smoother.wrapper();
设置器
// set the wrapper to the element with #wrapper id
smoother.wrapper("#wrapper");