Node.js 无法使用jquery ajax put方法从节点js restful api mongoose获取ObjectId
这是jQueryAjax代码 这是节点js RESTful APINode.js 无法使用jquery ajax put方法从节点js restful api mongoose获取ObjectId,node.js,Node.js,这是jQueryAjax代码 这是节点js RESTful API 这是前端的按钮什么是this.getId()?您可以使用this.id我上次使用了它,但是objectid没有定义:-(var\u id=this.id;alert(“Update”);$.ajax({type:'PUT',url:'+\u id,//data:this.model.exportJSON(),success:function(data){console.log(data)},error:function(xhr,
这是前端的按钮什么是
this.getId()
?您可以使用this.id
我上次使用了它,但是objectid没有定义:-(var\u id=this.id;alert(“Update”);$.ajax({type:'PUT',url:'+\u id,//data:this.model.exportJSON(),success:function(data){console.log(data)},error:function(xhr,tst,err){console.log('xhr error'+XMLHttpRequest.status);};