使用meteor js动态更改文本

时间:2017-08-15 13:09:09

标签: javascript reactjs meteor meteor-blaze

请查看图片以供参考

Click to view

使用标签和文字添加可编辑的Console.Write("Are you a member? (Y/N) : "); string memberStatus = Console.ReadLine(); if (memberStatus.Equals("Y")) { 。文本由用户输入。标签从它们上面的两个框中选择。

当标签中的数据改变时,标签选择列表数据也相应地改变。

但内容可编辑div中的数据保持不变。我需要它也会相应更改或在删除时通知缺失。

我正在使用Meteor JS和Blaze,为此做出反应。我从这个小提琴link

中得到了一些参考



div

 "click .selectable-tags"(e, t) {
      // sets the tags inside the Method  box on click 
   let el = e.target.cloneNode(true);
   el.setAttribute('contenteditable', false);
   document.querySelector('[contenteditable]').appendChild(el);
  },




0 个答案:

没有答案