 
      
    JavaScript
- 8 ответов
- 0 вопросов
    6
    Вклад в тег
    
      
      
    
  
  
...
componentDidMount() {
  const { editorArea } = this.refs;
  const editor = new SirTrevor.Editor({
      el: editorArea,
      defaultType: 'Text',
      iconUrl: 'build/sir-trevor-icons.svg'
  });
}
  
render() {
  return (
      <div>
        <textarea className="js-st-instance" ref="editorArea"></textarea>
      </div>
    )
}
...// Парсим в объект
const json = JSON.parse('{"document": {"data": {"docType": 1, "name": "С", "fiscprops": [{"caption": "З", "printable": "123456789012", "tag": 1013, "value": "123456789012"} ] }, "result": 0 }, "protocol": 1, "version": "1.0"}');
// Выводим нужное значение
console.log(json.document.data.fiscprops[0].value);// Import F7 Bundle
import Framework7 from 'framework7/framework7.esm.bundle.js'
// Import F7-Vue Plugin Bundle (with all F7 components registered)
import Framework7Vue from 'framework7-vue/framework7-vue.esm.bundle.js'// Init F7-Vue Plugin
Framework7.use(Framework7Vue);