我正在写一个网络应用程序。我使用过Parse.com的JavaScript库。下面是我的JS代码我在整个代码(<html>
标签)上收到错误:
$('#NewSetForm').on('submit', function (e) {
e.preventDefault();
var SetList = Parse.Object.extend("SetList");
var setList = new SetList();
setList.save({
Tittle: $('#Topic').val(),
WordOne: $('#wordone').val(),
WordOneDefine: $('#wordonedefine').val(),
WordTwo: $('#wordtwo').val(),
WordTwoDefine: $('#wordtwodefine').val()
}, {
success: function (setList) {
alert('Sucess');
// The object was saved successfully.
},
error: function (setList, error) {
alert('Faliled Contect us for support');
// The save failed.
// error is a Parse.Error with an error code and message.
}
});