调整使用dom渲染get等方法的错误; 调整宽度过窄时分页的样式
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* 选中dom元素
|
||||
*/
|
||||
export function selector(el) {
|
||||
return document.querySelector(el);
|
||||
return el.nodeType ? el : document.querySelector(el);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user