1
64
746
高级会员
使用道具 举报
9
304
2820
论坛UI达人
var OilPrice = msg.payload[0].split('\n'); // 去除数组中的空元素 var filteredArray = OilPrice.filter(function (element) { return element !== ''; }); var StateTips = msg.payload[1].split('\n'); var endIndex = StateTips[2].indexOf('。'); var TipsTips = StateTips[2].substring(0, endIndex + 1); var newmsg = {}; newmsg.price = filteredArray; newmsg.state = StateTips[1]; newmsg.tips = TipsTips; return newmsg;
0
21
103
注册会员
22
183
19
80
59
337
中级会员
37
554
41
2162
8592
元老级技术达人
落楓 发表于 2025-1-16 10:09 大佬们,请教一下这个流用什么卡片展示好看啊
ghostist 发表于 2025-1-16 13:13 mark down 去找一下原贴 有代码
62
534
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )
GMT+8, 2025-5-22 13:28 , Processed in 0.155639 second(s), 21 queries .
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.