报错处理:Avoid using non-primitive value as key, use string/number value instead
2019-04-29 11:02
1481 查看
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/lily__an/article/details/89670519
项目运行报错
Avoid using non-primitive value as key, use string/number value instead.
意思是:避免使用非基本值作为键,而是使用字符串/数字值。
Duplicate keys detected: '[object Object]'. This may cause an update error.
意思是:检测到重复键:'[object object]'。这可能会导致更新错误。
项目代码:
报错的意思是 不要用对象或是数组作为key,用string或value作为key
我们可以将key的值改为 adIndex ;即可
相关文章推荐
- 解决element-ui upload组件报错 Avoid using non-primitive value as key, use string/number value instead
- 挖坑指南:[Vue warn]: Avoid using non-primitive value as key, use string/number value instead
- 关于iview中[Vue warn]: Avoid using non-primitive value as key, use string/number value instead.影响性能的问题
- Vue | using non-primitive value as key, use string/number value instead.
- Avoid using "px" as units; use "dp" instead
- Avoid using "px" as units; use "dp" instead
- Avoid using "px" as units; use "dp" instead
- Spring整合Ehcache3启动报错”Cache [xxx] specifies key/value types. Use getCache(String, Class, Class)”
- composer install 时,提示:Package yiisoft/yii2-codeception is abandoned, you should avoid using it. Use codeception/codeception instead.的解决
- Why I can't use non-string key in the myMap[myKey] expression? And what to do now?
- 解决Package illuminate/html is abandoned, you should avoid using it. Use laravelcollective/html instead.问题
- 尝试使用百分比数字作为值 [英]Trying to use a number with percentage as value
- vue报错:ues string/number value instead
- Use StringBuilder instead of String as possible as you can.
- iOS---stringByAddingPercentEscapesUsingEncoding:' is deprecated: first deprecated in iOS 9.0 - Use -stringByAddingPercentEncodingWithAllowedCharacters: instead,
- OpenCV3.4 sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' : undeclared
- 处理MySQL更新表时ErrorCode:1175.You are using safe update mode and you tried to update a table without a WHERE that uses a KEY
- JavaSE8基础 HashMap<Integer,String> containsKey/Value 判断集合是否包含指定的键或值
- Hashtable and HashMap are two hash based collection in Java and used to store objects as key value p
- IOS Number 处理(int-->NSNumber,NSNumber-->nsinteger,string -->double,CGFloat --> dobule)