Commit 955843e2 authored by limingzhe's avatar limingzhe

fix: debug

parent 9fe8bdf3
......@@ -426,51 +426,51 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
getBookTextList() {
// let resData1 =
// {
// "msg": "success",
// "data": [
// {
// "number": 3,
// "text": "Mara the Mermaid Meets a Sea Turtle"
// },
// {
// "number": 5,
// "text": "I see a sea turtle!"
// },
// {
// "number": 6,
// "text": "I see one green sea turtle, and one brown sea turtle."
// },
// {
// "number": 8,
// "text": "I see four long flippers."
// },
// {
// "number": 10,
// "text": "I see one big shell."
// },
// {
// "number": 12,
// "text": "I see many little eggs."
// },
// {
// "number": 14,
// "text": "I see a sea turtle eating seaweed!"
// }
// ]
// }
// this.bookTextList = resData1.data;
let resData1 =
{
"msg": "success",
"data": [
{
"number": 3,
"text": "Mara the Mermaid Meets a Sea Turtle"
},
{
"number": 5,
"text": "I see a sea turtle!"
},
{
"number": 6,
"text": "I see one green sea turtle, and one brown sea turtle."
},
{
"number": 8,
"text": "I see four long flippers."
},
{
"number": 10,
"text": "I see one big shell."
},
{
"number": 12,
"text": "I see many little eggs."
},
{
"number": 14,
"text": "I see a sea turtle eating seaweed!"
}
]
}
this.bookTextList = resData1.data;
// this.bookTextList = this.filterDuplicateText( this.bookTextList);
this.bookTextList = this.filterDuplicateText( this.bookTextList);
// console.log('this.bookTextList: ', this.bookTextList);
console.log('this.bookTextList: ', this.bookTextList);
// return;
return;
console.log(' in getBookTextList');
const call_back = (res) => {
......@@ -522,7 +522,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
// 截取数组
// return arr.slice(startIndex, startIndex + startMaxLength);
const randomArr = arr.slice(startIndex, endIndex + 1);
const randomArr = arr.slice(startIndex, endIndex);
console.log('randomArr: ', randomArr);
if (randomArr.length % 2 !== 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment