我是VB的新手,我试图将数组值从Angular传递给VB API
值
var topass = [{"CodeMerch":440077,"NameMerch":"Aelpler¿ Magrone 2KG (2)","CategoryMerch":3576,"StatusMerch":null,"UnitPriceMerch":0,"UnitMerch":"g","KioskMerch":"10","ExistingIngredient":"440077","LinkedMerch":"","$$hashKey":"object:431"},{"CodeProd":"441371","NameProd":"Test Product","CategoryProd":"TIne test","StatusProd":"1","UnitPriceProd":"15","UnitProd":"","$$hashKey":"object:441"}]
这是我的代码
$.ajax({
url: "api/postProductLink",
type: "POST",
data: topass,
dataType: "json",
success: function (result) {
alert(result);
}
});
我只是想将每个值转换为API上的字符串
<HttpPost>
<POST("api/postProductLink")> _
Public Function postProductLink()
'code here
End Function
提前致谢!