jsonObject.accumulate("status",null);
我想通过空在JSON服务呼叫我尝试的值""," ",NULL,nil,"null"但没有什么帮助
有人可以解决这个问题吗?
我有history以下列的表:
row_id, msgid, sender, receiver, chatcontent, transdate, transtime
Run Code Online (Sandbox Code Playgroud)
每个聊天记录都存储在表格中的单独行中.
场景:如果内容超过2048个字符,我的框架将聊天内容分成多个脚本,数据存储在具有相同细节的多行中,如msgid,sender,receiver,transdate和transtime,只有chatcontent与row_id不同.
例如,我在表格中的内容是
001, msgid1, mark@test.int, james@test.int, this is a long tes, 2013-03-13, 13:55:34
002, msgid1, mark@test.int, james@test.int, t message which is, 2013-03-13, 13:55:34
003, msgid1, mark@test.int, james@test.int, splitted in multi, 2013-03-13, 13:55:34
004, msgid1, mark@test.int, james@test.int, ple rows, 2013-03-13, 13:55:34
005, msgid2, james@test.int, mark@test.int, yup i got you, 2013-03-13, 13:56:12
Run Code Online (Sandbox Code Playgroud)
现在我想在单个查询中获取数据,该查询应该具有输出
msgid1, mark@test.int, james@test.int, this is a long test message which is splitted in multiple rows, 2013-03-13, 13:55:34
msgid2, …Run Code Online (Sandbox Code Playgroud) let animals = ['Hen', 'elephant', 'llama', 'leopard', 'ostrich', 'Whale', 'octopus', 'rabbit', 'lion', 'dog'];
let secretMessage = animals.map(function(animal) {
for(animal = 0; animal <= animals.length-1; animal++) {
return animals[animal].charAt(animal);
}
});
console.log(secretMessage.join(''));
Run Code Online (Sandbox Code Playgroud)
嗨,我想通过这段代码来输出字符串HelloWorld,它是由动物数组中每个字符串/元素的第一个字符组成的。但是,输出为HHHHHHHHHH。我不知道for循环是否是这里的问题?
有人可以告诉我为什么代码会产生这样的输出,我如何修改它以便成功返回期望的结果?
我现在只是一个新手,这就是为什么您的帮助将在我成为程序员的过程中发挥巨大作用。提前致谢!