There is a problem with uniapp. When you compile to H5, you can get the data, but you can’t get the data in the WeChat applet
As shown in figure:
Then, at the prompt, add console.log to the relevant code to see the output
It turns out that there was an error adding a label to the element
Look at both sides of the console to find the reason:
H5:
WeChat applet:
The WeChat applet converts uppercase letters to lowercase
Fix: Change the data-trailerID in HBuilderX to all lowercase
As shown in figure:
Then, at the prompt, add console.log to the relevant code to see the output
It turns out that there was an error adding a label to the element
Look at both sides of the console to find the reason:
H5:
WeChat applet:
The WeChat applet converts uppercase letters to lowercase
Fix: Change the data-trailerID in HBuilderX to all lowercase
Read More:
- Matters needing attention in the process of using Aidl
- Points for attention in setting up robot framework + Python 3.7.0 environment
- Error in installing NPM for uniapp
- Solve the problem of reporting errors when tsfresh downloads UCI har dataset
- Successfully solved the problem of “runtimee” in RESNET dataset classification rror:expected scalar type Long but found Float”
- Uniapp ESLint error: ‘uni‘ is not defined no-undef [How to Solve]
- Info:Memory module [DIMM] needs attention: Single-bit warning error rate exceeded, Single-bit fai…
- Uniapp Use vant Weapp icon Module Error [How to Fix]
- Mmdetection reports an error when running its own coco dataset. Does not match the length of \ ` classes \ ` 80) in cocodataset
- What should be paid attention to in socket programming — bind socket error: address already in use
- Using uniapp uni.downloadFile Download picture to photo album times error unknown problem
- Uniapp uses CMD to import uview. An error is reported, and the file search fails: ‘uview UI’‘
- There is a solution to the problem: severity = corrected, type = physical layer, id = 00e5 or id = 00e8 (receiver ID) under Ubuntu
- SSIS Error:Package Validation Error. SSIS Error Code DTS_E_OLEDBERROR. .Error code: 0x80040E37. An …
- E11000 duplicate key error collection in mongodb
- CSAPP 3e Attack Lab
- JSON parse e rror: Invalid UTF-8 middle byte 0x3f;
- Adobe Acrobat installation error experience of e1935 0x80070bc9
- Error 404:SRVE0190E: File not found: index.action when websphere publishes the project war package
- E667: Fsync failed