调整使用dom渲染get等方法的错误; 调整宽度过窄时分页的样式

This commit is contained in:
maplemei
2019-12-03 10:35:11 +08:00
parent b493563677
commit c6a5080161
8 changed files with 12 additions and 8 deletions

View File

@@ -2,7 +2,7 @@
* 选中dom元素
*/
export function selector(el) {
return document.querySelector(el);
return el.nodeType ? el : document.querySelector(el);
}
/**