diff --git "a/078.\344\275\240\346\233\264\345\226\234\346\254\242\350\260\201.html" "b/078.\344\275\240\346\233\264\345\226\234\346\254\242\350\260\201.html" index a770aa9..d6984bd 100644 --- "a/078.\344\275\240\346\233\264\345\226\234\346\254\242\350\260\201.html" +++ "b/078.\344\275\240\346\233\264\345\226\234\346\254\242\350\260\201.html" @@ -192,8 +192,10 @@

你更喜欢哪个?

.then((res) => res.text()) .then((res) => { let stars = []; - let label = res.split("\r\n").filter((a) => a); + let label = res.split("\n").filter((a) => a); + console.log(label); + stars = label.map((n) => { let tmpArr = n.split("_"); return {