在数据库inmeteor

时间:2015-05-27 08:04:00

标签: javascript json meteor

在我的metml流星项目中,paragrap具有这样的json值。

    {"Active Template Id":"6467","Shirt Brand":"levis","ProductId":"EB301","Brand":"on","Material":"cotton","Price":"1800","Combo Id":"S90"}

我想将此值存储在" products collection"中的数据库中。 我并没有准确地解决这个问题。

1 个答案:

答案 0 :(得分:0)

您对问题的描述太简单了。 一般解决方案可能包括以下步骤: step1:使用ajax将数据发送到服务器。 step2:使用服务器脚本接收和分析它。 step3:插入数据库使用循环。