📌  相关文章
📜  如何在 vuejs 中获取当前模板 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:28.836000             🧑  作者: Mango

代码示例1
//vue js gives you this as a global var
var current_document = this.$el;

//and
this.$el.querySelector('#color').InnerHTML = 'selected the element with color id in the current document'