Layui reported an error “layui. JS: 4 uncaught typeerror: cannot create property ‘lay_table_index’ on string…”
Read the information from the cloud database with PHP applet, and an error will be reported if it is placed in the layui. Later, I put the returned JSON into the local test, and found that it is because the data in res.data is of string type, and layui requires JSON object type,
So we just need to turn every piece of data in res.data
Above figure:
Similar Posts:
- [Solved] TypeError: string indices must be integers, not str
- The solution to the java.lang.ClassCastException: [B cannot be cast to java.lang.String error in kettle
- [Solved] Uncaught TypeError: Cannot create property ‘LAY_TABLE_INDEX’ on number ‘1’
- Error Domain=NSCocoaErrorDomain Code=3840 “Invalid value around character 162.” UserInf…
- layui run error: $is not defined [How to Solve]
- How to Solve Error: Unexpected token o in JSON at position 1
- Solve the problem of “resource interpreted as document but transferred with MIME type application / JSON” in IE browser
- MySQL Reading table information for completion of table and column names
- Uncaught typeerror: the solution of illegal invocation problem