WinJS OData JSON

前提是你 提交于 2019-11-29 18:01:57

At least one of your properties has a declared type of Edm.Decimal or Edm.Int64. These values must be serialized as a string (i.e., the number wrapped in " characters) in OData's JSON format. If you're not sure what the declared types of the properties are, you can look up the entity type in the server's $metadata document (typically available at http://.../MyService.svc/$metadata).

So, for the property or properties that are Edm.Int64 or Edm.Decimal, you could remove the call to parseFloat() and just keep it as a string.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!