Skip to content

Commit

Permalink
复制导入可以用了,link #60
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromyLee committed May 29, 2020
1 parent 41c5e9f commit 9fa849b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions textMark/templates/textMark/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ <h3>
function getUserInfo() {
$.ajax({
type:"GET",
url:"/user/other/?action=get_user_info",
url:"/user/other?action=get_user_info",
contentType: "application/json",
success: function (data) {
if (data.ret == 0) {
Expand Down Expand Up @@ -416,7 +416,7 @@ <h3>
// console.log(usertext);
$.ajax({
type:"POST",
url:"/user/texts",
url:"/api/project/texts",
async:false,
contentType: "application/json",
dataType: "json",
Expand All @@ -439,10 +439,11 @@ <h3>
function loadText() {
$.ajax({
type:"GET",
url:"/user/texts?action=list_text",
url:"/api/project/texts?action=list_text",
async:false,
success(data) {
document.getElementById("thetext").innerText=data.retlist.text.toString();
// console.log(data.retlist[data.retlist.length - 1]);
document.getElementById("thetext").innerText=data.retlist[data.retlist.length - 1].text;
}
})
}
Expand Down

0 comments on commit 9fa849b

Please sign in to comment.