APP - 页面请求

封装ajax()方法。

属性

名称 默认值
请求地址
请求类型 GET
发送数据 无(后端服务所需参数)
请求数据类型 application/x-www-form-urlencoded
异步
缓存
请求头
数据处理
超时(毫秒)

操作

名称 说明
发送请求 向定义的请求地址发送请求,请求参数可重新定义
设置请求参数 设置请求参数

事件

名称 说明
请求前 发送请求前触发
请求成功 请求成功时触发
请求失败 请求失败时触发

示例

请求服务中的数据。

例如服务路径为:http://appcomponents-ide.newdaoapp.cn/dbrest/main_table

预览点击发送请求按钮效果

results matching ""

    No results matching ""

    results matching ""

      No results matching ""