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