analog.js 378 B

123456789101112131415161718
  1. //本地模拟数据
  2. function data(dever, method, param) {
  3. var config = dever.config.data;
  4. if (config[method]) {
  5. var data = config[method];
  6. if (data.config) {
  7. dever.setSetting(data.config);
  8. }
  9. dever.stopPullDown();
  10. callback.success(data, data);
  11. return true;
  12. }
  13. return false;
  14. }
  15. module.exports = {
  16. data: data
  17. }