|
- onSubmit() {
- var model = api.require('model');
- model.config({
- appkey:"1119BD0F-3139-42C6-27D7-4A279466333D",
- host : 'https://d.apicloud.com'
- })
- console.log(JSON.stringify(model))
- model.insert({
- class: 'bill',
- value: {
- id: '11111',
- person:"张三"
- }
- }, function (ret, err) {
- if (ret) {
- alert(JSON.stringify(ret));
- } else {
- alert(JSON.stringify(err));
- }
- });
- }
复制代码 在使用APIclould云数据库插入数据的时候报错,错误代码如下图
|
|