LR中变量、参数的使用介绍

Action()
{
char * url = "www.baidu.com";
char arr_url[1024];

//将url变量的值复制给p_url1参数
lr_save_string(url,"p_url");

//将p_url1参数的值复制给arr_url变量
strcpy(arr_url,"URL=http://");
strcat(arr_url,lr_eval_string("{p_url}"));


lr_output_message("通过获取参数的值的方式发送请求");
web_url("webtours",
"URL=http://{p_url}",
LAST
);

lr_output_message("通过获取变量的值的方式发送请求");
web_url(
"webtours",
arr_url,
LAST
);

return 0;
}

猜你喜欢

转载自www.cnblogs.com/NiceTime/p/9192573.html