"-"
, и поэтому второго элемента в массиве после split нет. class TotallyNotAjQuery {
constructor() {
this.inf = {
$el: null
}
this.el = this.el.bind(this);
}
el(selector) {
this.inf.$el = document.querySelector(selector);
return this;
}
styles(stylesObj) {
for(const primary in stylesObj) {
this.inf.$el.style[primary] = stylesObj[primary];
}
return this
}
on(event, func) {
this.inf.$el.addEventListener(event, func);
return this;
}
}
const {el: $} = new TotallyNotAjQuery();
$(".title").styles({
color: "red"
}).on("click", () => {
console.log("click");
});
Но бесит то, что постоянно в голове крутится мысль, что у меня не проект, а мусорка и я начинаю опять все собирать, пересобирать и бесит...)Это нормально и является признаком профессионального роста. Через какое-то время вы от этого устанете и успокоитесь, поняв, что всё это на самом деле не так важно, как вам сейчас кажется.
If you would like to continue using the original auto-prefixed controller routing, you can simply set the value of the $namespace property within your RouteServiceProvider and update the route registrations within the boot method to use the $namespace property
что я сделал не такБросили читать документацию на самом интересном месте.