ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
## 请求地址 > 说明: 指定表单的异步请求地址,包含异步数据的获取、事件的触发等。不配置默认为当前地址。 方法:`url($url)` * 参数 **url** (必须) * 类型一:callable 闭包,例: ```php url(function(){ return "http://xxx.com/xxx.html"; }); ``` * 类型二:string,例: ```php url("http://xxx.com/xxx.html"); > 示例: 设置表单`请求地址`为`http://xxx.com/xxx.html` * 方法一 ~~~ $builder=YF('general_example')->url(function(){ return "http://xxx.com/xxx.html"; }) ~~~ * 方法二 ~~~ $builder=YF('general_example')->url("http://xxx.com/xxx.html") ~~~