Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/InfoRobot.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/deployment.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/scopes/scope_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

258 changes: 258 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions Docs/Task_Api.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
CreatTask:
//创建任务
传入参数:
string TaskContent //任务内容
int date //日期 0 今天 1 明天 2 即将
int flag //是否完成 0 否 1 是
function callback() //回调函数
回调函数:
"code":0 参数错误 1 成功
"message": string //备注信息
"id": 任务ID

RequireTaskList
//请求任务列表
传入参数:
int date //日期 0 今天 1 明天 2 即将 3 已完成
回调函数:
"code": 0 参数错误 1 成功

DeleteTask
//删除任务
传入参数:
int id //任务ID
回调函数:
"code": 0 参数错误 1 ID不存在 2 删除成功
"message": string //备注信息


28 changes: 28 additions & 0 deletions Main/apitest.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head lang="zh-CN">
<meta charset="UTF-8">
<title>APITest</title>
<script type="text/javascript" src="static/libs/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="static/js/API.js"></script>
<script>
$(function(){
$("#test").on('click', function (event) {
api.user.test(
$("#name").val(),
$("#pass").val(),
function(result){
$("#result").text(result);
}
);
});
});
</script>
</head>
<body>
<input id="name" type="text" placeholder="name"/>
<input id="pass" type="text" placeholder="pass"/>
<button id="test">测试</button>
<div id="result">这里是结果</div>
</body>
</html>
5 changes: 5 additions & 0 deletions Main/app/test.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php
$test1=$_POST["name"];
$test2=$_POST["password"];
echo $test1."---".$test2;
?>
Loading