<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="referrer" content="always"> <meta name="keywords" content="jfinal blog app"> <meta name="description" content="JFinal 官方商城 jfinal blog app"> <title>jfinal blog admin</title> <link rel="stylesheet" href="/assets/lib/bootstrap/css/bootstrap.css"> <link rel="stylesheet" href="/assets/lib/font-awesome/css/font-awesome.min.css"> <link rel="stylesheet" href="/assets/css/jfinal-blog-admin.css"> </head> <body> <!-- 根容器 --> <div class="root-box container-fluid"> <button msg url="/test/ttt"> 清除缓存 </button> </div> </body> </html> <script src="/assets/lib/jquery/jquery-3.5.1.min.js"></script> <script src="/assets/lib/bootstrap/js/bootstrap.min.js"></script> <script src="/assets/lib/layer/layer.js"></script> <script src="/assets/js/jfinal-kit.js"></script> <script src="/assets/js/jfinal-blog-admin.js"></script>
后端
public void ttt() { renderJson(Ret.ok("msg", "缓存清除完成")); }
不知道为啥,照例子来的,前端按钮怎么点也没有反应。就一个按钮。
项目:JFinal