[英]Parse: TypeError: Cannot call method 'split' of undefined at main.js:7:37
I am trying to save a ParseObject with a server-created field of "arrWords". 我正在尝试使用服务器创建的“ arrWords”字段保存一个ParseObject。 However, I keep getting an error of
但是,我不断收到一个错误
TypeError: Cannot call method 'split' of undefined at main.js:7:37
This error occurs both on my server-side code using the Parse provided SDK and in the Parse Dashboard when entering the value 输入值时,在使用解析提供的SDK的服务器端代码和解析仪表板中均会发生此错误。
["test","test2"]
for the arrWords array. 用于arrWords数组。
My code is simple: 我的代码很简单:
$query = new \Parse\ParseQuery("Post");
$object = $query->first();
$object->setArray("arrWords", ["test", "test2"]);
$object->save();
The same errors occurs with setArray(), setAssociativeArray(), and add(). setArray(),setAssociativeArray()和add()也会发生相同的错误。
Notes: 笔记:
Is this due to the size of my table and / or a Parse system issue? 这是由于表的大小和/或解析系统问题引起的吗? Or am I doing something wrong?
还是我做错了什么?
It seems to be an issue with Parse and how they handle large data sets. 解析以及它们如何处理大数据集似乎是一个问题。 I've found a work-around from the Parse Dashboard that suits my needs for now.
我已经从“解析仪表板”中找到了一种适合我目前需要的变通方法。
Tips on JSON format for Parse Import 解析导入的JSON格式提示
{"results": [ Objects ] }
{"results": [ Objects ] }
{ "field": "data", "array": ["data,"data"] }, { "field": ... }
{ "field": "data", "array": ["data,"data"] }, { "field": ... }
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.