JavaScript
文章平均质量分 79
qq_41877186
这个作者很懒,什么都没留下…
展开
-
学习笔记-------JAVA后台处理JSON对象通过AJAX的XMLHttpRequest取得Json对象以及JS处理json对象全过程
1.0JAVA后台对JSON数据的处理: 1.1处理JSON对象 后台收到request请求后,经过具体业务处理(此处略)返回一个JSON对象并发送到XMLHttpRequest中,本例生成一个含有 JSON对象以及JSONArray数组的复杂JSON对象,代码如下: String longStr ="{ 'desc': 'OK', 'status': 1000, 'data'...原创 2018-04-02 19:29:58 · 454 阅读 · 0 评论 -
学习笔记-------JavaScript的继承
//原型 function fruit(name){ this.name = name; } //原型的方法 fruit.prototype.say = function(type){ return "I am " + this.name +", and I am " + type + "!!" }; //子类继承原型 function apple(name,type){ //通过...翻译 2018-04-10 13:47:36 · 136 阅读 · 0 评论