first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
(function () {
class Indexe {
config = {
el: '.bj',
Popswitch: false,
title: "标题",
title2: "内容"
}
constructor(el, ope) {/*检测*/
if (typeof el != "string" || el.length == 0 || document.querySelector(el) == null) {
throw new Error("el参数未传");
} else {
console.log("通过检测")
}
this.config.el = el;
this.config.Popswitch = ope.Popswitch || this.config.Popswitch;
this.config.title = ope.title || this.config.title;
console.log(this.config)
this.tianjia()
}
tianjia() {
this.el.innerHTML = `<div></div>`
}
$(className) {
return document.querySelector(className);
}
}
window.Indexe = Indexe
})()
//1.检测内容
//2.向html上追加内容
//3.追加的内容等于用户自定义的内容