使用频率 | 中 |
使用难度 | 低 |
所属模块 | Std.ajax |
成员类型 | 公有成员函数 |
type方法可以设置或者获取http的请求类型,可以为post,get,put,delete等,默认为get
//获取type
String type();
//设置type
Object type(String type);
类型 | 描述 |
String | http请求类型字符串,post,get,put,delete...等 |
var ajax = Std.ajax();
ajax.url("/index.php");
ajax.type("post");
ajax.send();