Html 的 Button 怎么触发php的方法?<?php// First, include Requestsinclude('../library/Requests.php');// Next, make sure Requests can load internal classesRequests::register_autoloader();function get_data(){ // Now let's make a request!
$request = Requests::post('http://103.200.32.76:8000/api/groups/list/', array(), null);// Check what we received
var_dump($request);
}?><button @on="get_data()"></button>这样写是触发js方法的,我怎么才能让它触发PHP方法呢?
- 2 回答
- 0 关注
- 1220 浏览
添加回答
举报
0/150
提交
取消