循环遍历文章的时候,因为后端传过来的时间是时间戳,需要转换。
自定义了一个时间转换的module ,
但是在循环里面调用module处理时间传 item.pubdate传不过来,不知要怎么传
实在搞不定就只能在js里面接收到数据的时候循环处理下了
小程序在循环遍历数据时候给wxs module怎么传参数?How does the applet pass parameters to the wxs module when it loops through the data?
小程序在循环遍历数据时候给wxs module怎么传参数?循环遍历文章的时候,因为后端传过来的时间是时间戳,需要转换。
自定义了一个时间转换的module ,
但是在循环里面调用module处理时间传 item.pubdate传不过来,不知要怎么传
实在搞不定就只能在js里面接收到数据的时候循环处理下了
When looping through the article, because the time passed from the back end is a timestamp, it needs to be converted. A time conversion module is customized, but the module is called in the loop to process the time transferred to item PubDate can't be transmitted. I don't know how to transmit it. I'm not sure. I can only process it circularly when the data is received in JS
回答:
大佬们