ajax请求字符串拼接json,发送到后台@RequestBody接收

 这种方法能够将变量拼接成json格式的字符串javascript var hashcode = '{"hashcode":\"' + row.hashcode + '\"}';//字符串拼接成Json,row.hashcode为变量 $.ajax({ type: 'put', url: '/file/queryNameByHash?_' + $.now()
相关文章
相关标签/搜索