codecamp

无标题文章

  1. Create操作: create()(非链式) 、add()、addAll() 支持的链式操作有: table 、data、field 、relation 、validate、auto 、filter、scope 、bind 、token 、comment
  2. Update操作 save()、setField()、setInc()、setDec()
  3. 支持的链式操作有: where、table 、alias、field、order、lock 、relation 、scope 、bind 、comment
  4. Read操作 find()、select()、getField()、Count 、Max、Min 、Avg 、Sum 支持的链式操作有: where 、table 、alias 、field 、order、group 、having 、join 、union 、distinct、lock、cache 、relation 、result 、scope 、bind 、comment
  5. Delete操作 delete() 支持的链式操作有: where 、table 、alias 、order、lock 、relation 、scope 、bind 、comment 这些方法的可能的返回值有false/true/一位数组/二维数组/numeric(数字)/null/类本身的实例。
无标题文章
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }