code: function ios_exec(exec, config) {
    var body = config.body;
    var win = config.onSuccess;
    var fail = config.onFail;
    var context = config.context;
    if (exec && typeof exec === 'function') {
      exec(body, function (response) {
        if (typeof response !== "undefined") {
          if ('0' === response.errorCode) {
            win && win.call(context, response.result);
          } else {
            fail && fail.call(context, response.result);
          }
        } else {
          fail && fail.call('-1', "");
        }
      });
    } else {
      fail && fail.call('-1', "");
    }
  }
docs: Created by xiangwenwen on 2017/3/24.