codecamp

easy-okhttp 总结=结束

前面罗里吧嗦的写了一堆,而且我个人觉得语言组织的不太好,而且也没有二次加工,希望大家见谅,如果确实有有歧义或不明白的部分,可以在QQ群里@ 我。

文档写到了这里,是时候来个总结。


我的网站:https://www.mzlion.com/

easy-okhttp项目官网:git.oschina.net/mzllon/easy-okhttp

mzlion-core项目官网:https://git.oschina.net/mzllon/mzlion-core


easy-okhttp 为单个请求修改配置
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

easy-okhttp 总结

关闭

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; }