监听事件

监听内容

 <editor id='tinymce' v-model='tinymceHtml' :init='init' ></editor>
 watch: {
      tinymceHtml(newValue, oldValue) {
        console.log('新输入的值为:'+newValue); // 会输出新值
        console.log('原来的值为:'+oldValue); // 会输出旧值
      }
    },
发布了33 篇原创文章 · 获赞 0 · 访问量 3183

猜你喜欢

转载自blog.csdn.net/YYY1920/article/details/102914799