eBay jsonpipe

码农软件 · 软件分类 · JSON/BSON开发包 · 2019-03-31 10:12:05

软件介绍

jsonpipe 是一个轻量级的 AJAX 客户端,用于处理压缩(chunked)的 JSON 响应信息。

示例代码:

var jsonpipe = require('jsonpipe');
/**
 * @param {String} url A string containing the URL to which the request is sent.
 * @param {Object} url A set of key/value pairs that configure the Ajax request.
 * @return {XMLHttpRequest} The XMLHttpRequest object for this request.
 * @method flow
 */
jsonpipe.flow('http://api.com/items?q=batman', {
    "delimiter": "", // String. The delimiter separating valid JSON objects; default is "\n\n"
    "success": function(data) {
        // Do something with this JSON chunk
    },
    "error": function(errorMsg) {
        // Something wrong happened, check the error message
    },
    "complete": function(statusText) {
        // Called after success/error, with the XHR status text
    },
    "timeout": 3000, // Number. Set a timeout (in milliseconds) for the request
    "method": "GET", // String. The type of request to make (e.g. "POST", "GET", "PUT"); default is "GET"
    "headers": { // Object. An object of additional header key/value pairs to send along with request
        "X-Requested-With": "XMLHttpRequest"
    },
    "data": "" // String. A serialized string to be sent in a POST/PUT request
});

本文地址:https://www.codercto.com/soft/d/2540.html

程序设计基础

程序设计基础

谢书良 / 2010-5 / 29.50元

《程序设计基础》是为从来没有接触过程序设计的读者编写的“零起点”入门教材。全书共分8章,第1章主要介绍程序设计的概念和程序运行的环境,第2章介绍了基本的数据类型、运算符与表达式,第3章介绍面向过程程序的顺序、分支选择和循环三种控制结构,第4章至第7章分别介绍了数组、指针的概念,结构体和其他数据类型,函数及其调用,内容涵盖了C++面向过程程序设计内容,与C语言教材完全兼容。第8章是体现《程序设计基础......一起来看看 《程序设计基础》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

SHA 加密
SHA 加密

SHA 加密工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具