Skip to content

Commit

Permalink
test linux question ?
Browse files Browse the repository at this point in the history
  • Loading branch information
linyisonger committed Oct 12, 2024
1 parent 7de0f61 commit b03048f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 078.你更喜欢谁.html
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,10 @@ <h2>你更喜欢哪个?</h2>
.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 {
Expand Down

0 comments on commit b03048f

Please sign in to comment.