|
請問以下這方式能連結到雲數據嗎?
連結還有哪些事項要注意
var model = api.require('model');
model.config({
appKey: '60958399-975D-5C26-F2C8-E619401863A5'
});
function SearchData(){
var model = api.require('model');
model.findById({
class: 'SN',
id: 'SS1234566'
},function(ret, err){
var data = ret;
if(ret){
//do something
alert("SN字段中的值为:" + ret);
}
});
};
|
|