2019-11-07 16:58:19 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<title>Title</title>
|
2019-11-07 18:27:13 +00:00
|
|
|
<link rel="stylesheet" href="../../lib/layui/css/layui.css"/>
|
2019-11-07 16:58:19 +00:00
|
|
|
</head>
|
|
|
|
|
<body>
|
2019-11-08 07:26:54 +00:00
|
|
|
|
2019-11-07 16:58:19 +00:00
|
|
|
dsafasdf
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
<script src="../../lib/layui/layui.js"></script>
|
|
|
|
|
<script type="text/javascript">
|
2019-12-11 18:14:04 +00:00
|
|
|
layui.use(["jquery","okFly"], function () {
|
|
|
|
|
let $ = layui.jquery,
|
|
|
|
|
okFly = layui.okFly;
|
|
|
|
|
|
|
|
|
|
okFly.post("/test", {
|
|
|
|
|
a: "as",
|
|
|
|
|
b: 125
|
|
|
|
|
}).then(function (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
}).catch(function (err) {
|
|
|
|
|
console.log(err);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
okFly.get("/test", {
|
|
|
|
|
a: "as",
|
|
|
|
|
b: 125
|
|
|
|
|
}).then(function (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
}).catch(function (err) {
|
|
|
|
|
console.log(err);
|
|
|
|
|
});
|
2019-11-07 16:58:19 +00:00
|
|
|
});
|
2019-11-08 07:26:54 +00:00
|
|
|
</script>
|