@Permission("Http") @Description("这是Http请求示例") contract HttpExample{ @Description("http get,参数示例: http://www.baidu.com") export function get(arg){ var ret = HttpUtil.httpGet(arg); return ret; } @Description("http post,参数示例: {\"url\":\"http://www.baidu.com\",\"data\":\"ddd\"}") export function post(arg){ var ret = HttpUtil.httpPost(arg); return ret; } }