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方法呢?
白猪掌柜的
慕娘9325324