【发布时间】:2014-02-26 17:04:33
【问题描述】:
我需要帮助,因为我在Collection 中插入日期,但出现了找不到方法错误。如何解决该错误请帮助我,下面是我的代码。
My Collection Name is : hcare_user = new Meteor.Collection('hcare');
Js code :
hcare_user.insert({
userid: userid,
firstname : firstname,
lastname : lastname,
bday: bday,
bmonth : bmonth,
byear : byear,
phoneno:phoneno,
address : address,
city : city,
state:state,
zipcode: zipcode,
country : country,
ssn : ssn,
permissions:permissions
}
, function( error, result)
{
if ( error ) console.log ( "error ="+ error); //info about what went wrong
if ( result )
{
console.log ( "result="+result );//the _id of new object if successful
$('input[type="text"]').val('');
//$('input[type="radio"]').val('');
//$('input[type="date"]').val('');
alert("Sucessfully Created");
}
});
}
});
错误是:
error =Error: Method not found [404] @
【问题讨论】:
标签: meteor