关键代码

this.data={};
// json string
this.dataStr=JSON.stringify(this.data);
// json object
this.convertData=JSON.parse(this.dataStr);

示例代码

示例代码

参考资料

TypeScript: Working with JSON

最新文章

  1. 怎样用ZBrush对模型进行渲染
  2. postgresql Delete+ join
  3. Makefile 学习&binutils工具集,软件开发利器
  4. [React Native] Build a Github Repositories component
  5. 从svn上down下来的版本在本机启动时各种问题
  6. java.lang.ClassCastException: Ljava.lang.Object; cannot be cast to com.entity.Advertisem异常
  7. java日期时间处理小结
  8. 转: 让html5标签在ie8及以下的被正确解析的解决方案
  9. Do not wait until the conditions are perfect to begin. Beginning makes the conditions perfect(转)
  10. css简单了解
  11. Shiro的原理及Web搭建
  12. python subprocess模块使用总结
  13. ERR_NAME_NOT_RESOLVED错误的解决
  14. TensorFlow windows 安装(base anaconda)
  15. 5、原生jdbc链接数据库实例-自动取款机
  16. elemnt UI点击事件失效,得到tab的序号
  17. MFC通过button控制编辑框是否显示系统时间
  18. Java之.jdk安装-Windows
  19. Android-AndroidStudio加载工程方式-gradle文件夹
  20. 配置Tomcat apr运行模式

热门文章

  1. web.xml(8)_jsp-config
  2. [Webpack] Access Webpack Dev Server from Mobile Safari on an iPhone
  3. php实现表示数值的字符串(is_numeric($s))
  4. 【u010】银河英雄传说
  5. 【poj 1704】Georgia and Bob
  6. 【codeforces 758C】Unfair Poll
  7. [Angular] Working with FormArray
  8. Android中再按一次退出实现
  9. rac下一个/tmp/bootstrap权限问题
  10. 【29.82%】【codeforces 703D】Mishka and Interesting sum