modified: application/index/controller/Index.php

modified:   themes/blue/index_index.html
master
fengyuexingzi 8 years ago
parent c924b84495
commit d7157b0071

@ -42,5 +42,10 @@ class Index extends Base
public function hello()
{
var_dump(input());
if ($this->request->isAjax()) {
var_dump($this->request);
echo '<br/>';
}
return json_encode($this->request->method());
}
}

@ -2,10 +2,11 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="__RELATIVE_PATH__/static/js/jquery-3.2.1.min.js"></script>
<title>Title</title>
</head>
<body>
<div><img src="__RELATIVE_PATH__/static/images/favicon.ico"></div>
<div><img src="__RELATIVE_PATH__/static/images/favicon.ico" onclick="info()"></div>
<h1>闭合标签</h1>
{tree:close time='$demo_time'/}
<hr>
@ -18,5 +19,15 @@
{$key}=>{$demo_name}<br>
{/tree:open}
<div id="msg" style="border: dotted 1px grey;width: 200px;height: 200px;color: blue">blue</div>
<script>
function info() {
$.ajax({
url : 'http://localhost/think-test/public/index/index/tree',
method : 'get',
data : 'name=1&pass=2',
async:false
});
}
</script>
</body>
</html>
Loading…
Cancel
Save