我需要像这样转一个字符串:
' query: "help me" distance: "25" count: "50" '
变成如下所示的 javascript 对象或 json 字符串:
'{ query: "help me", distance: "25", count: "50" }'
我需要像这样转一个字符串:
' query: "help me" distance: "25" count: "50" '
变成如下所示的 javascript 对象或 json 字符串:
'{ query: "help me", distance: "25", count: "50" }'