Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/39.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 无法使用jquery ajax put方法从节点js restful api mongoose获取ObjectId_Node.js - Fatal编程技术网

Node.js 无法使用jquery ajax put方法从节点js restful api mongoose获取ObjectId

Node.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,

这是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,tst,err){console.log('xhr error'+XMLHttpRequest.status);};