草庐IT

quantidade

全部标签

php - 保存选择字段的(多个)元值

我无法保存选择字段框中包含的元数据。举个例子(卡在function.php到单品设置页面):(...)">TEST';echo'TEST1';echo'TEST2';?>//fewotherscustomfields:ID,'_ingrediente_x_quantidade',true);?>"type="text"class="ingrediente"id="_ingrediente"name="_ingrediente"value=""style="width:90%;"/>"type="number"name="_quantidade"id="_quantidade"class

MongoDB 将两个数组内的值相乘

我需要帮助将对象数组中的值相乘以获得输出。这是我的JSON/*1*/{"_id":ObjectId("5b919a785cb288f7d5311846"),"nome":"Antonio","cod_produtor":"PR001","morada":{"rua":"RuadosCarvalhos","n_porta":12.0,"cod_postal":"4567-123"},"data-registo":ISODate("2017-07-22T03:41:20.201+0000"),"colheita":{"cod_colheita":"COL001","ano":2018.0,