In uniapp, picker is used to render the object array, and the data is obtained from the background. The page code is as follows:
The data acquisition code is as follows:
Error report encountered:
The mistake here is that the property ProjectName is undefined, so you only need to add this property to the object array:
Previously:
Replace with:
If you use the hbuilder built-in browser, you may not see the error until you refresh it twice;
above;
Similar Posts:
- uniapp TypeError: Cannot read property ‘replace’ of undefined
- [Solved] TypeError: Property value expected type of string but got null
- How to Use Array.prototype.slice.call(arguments)
- JS Uncaught TypeError: Cannot read property ‘toLowerCase’ of undefined
- How to Solve Error: Unexpected token o in JSON at position 1
- flutter_cupertino_date_picker Compile Error: The type ‘DiagnosticableMixin’ can’t be mixed in
- [Vue warn]:Error in render: “TypeError: Cannot read property ‘0’ of undefined”
- When using angularjs procedure, track by $index of NG repeat
- [Solved] scss File Use the Depth Selector /deep/ Error: Expected selector
- QT Compilation error: invalid application of ‘sizeof’ to incomplete type ‘Qt3DRender::QPickEvent’