如何将json对象作为文本区域输入映射到vue函数变量

{ “图”:{ “类型”:“linerdfgdgdfgf”, “写成backgroundColor”:“# FFFFFF”, “borderColor”:“# 000”, “borderWidth”:0, “高度”:300年, “倒”:假的, “plotBackgroundColor”:“# FFFFFF”, “plotBorderColor”:“# FFFFFF”, “plotBorderWidth”:1、 “风格”:{ “fontFamily”:“开放无” } } }

如何将这些对象的值映射到输入框。

我使用这个函数在函数方法

getmyEditor: function(){

  chartType: this.options.chart.type;
  this.backgroundColor = this.options.chart.backgroundColor;
  this.borderColor = this.options.chart.borderColor;
  this.borderWidth = this.options.chart.borderWidth;
  this.height = this.options.chart.height;
  this.inverted = this.options.chart.inverted;
  this.plotBackgroundColor = this.options.chart.plotBackgroundColor;

}

猜你喜欢

转载自blog.csdn.net/weixin_43198791/article/details/83061855