如何將json物件作為文字區域輸入對映到vue函式變數
阿新 • • 發佈:2018-11-11
{ “圖”:{ “型別”:“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;
}