码迷,mamicode.com
首页 > Web开发 > 详细

ExtJs之 Ext.JSON

时间:2016-03-24 10:14:25      阅读:161      评论:0      收藏:0      [点我收藏+]

标签:

<!DOCTYPE html>
<html>
<head>
    <title>ExtJs</title>
    	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  		<link rel="stylesheet" type="text/css" href="ExtJs/packages/ext-theme-crisp/build/resources/ext-theme-crisp-all.css">
      <script type="text/javascript" src="ExtJs/ext-all.js"></script>
      <script type="text/javascript" src="ExtJs/bootstrap.js"></script>
      <script type="text/javascript" src="ExtJs/packages/ext-theme-crisp/build/ext-theme-crisp.js"></script>
</head>
<body>
<script type="text/javascript">
Ext.onReady(function() {
  var jsonStr = "{name: ‘the json name‘, value: ‘the json value‘}";
  var obj = Ext.JSON.decode(jsonStr, true);
  var g = ‘g‘, h = ‘h‘, e = [g, h], f = ‘f‘, b = [e, f], a = [b, ‘c‘];
  var endA = Ext.JSON.encode(a);
  Ext.Msg.alert("notice", endA, obj);
});
</script>
</body>
</html>

  技术分享

ExtJs之 Ext.JSON

标签:

原文地址:http://www.cnblogs.com/aguncn/p/5314240.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!