【发布时间】:2016-05-02 15:44:42
【问题描述】:
我创建了一个苗条的 api。它获取数据库项目并显示它。现在我如何将它包含在 html 页面中? 这是api路由
$app->get('/login/user_table(/:username)', function($username) use ($app){
user_table_view($username);
});
这是我要插入 api 的 html 页面。
<div class = "view">
<-- I want the api to be displayed here -->
</div>
【问题讨论】: