codecamp

FluentUI

Fluent UI 是 UX 框架的集合,方便创建可共享代码、设计和交互行为的Web和移动应用程序。使用来自微软的Fluent UI React(web)、Fluent UI Apple(iOS和macOS)以及Fluent UI Android GitHub库的组件,可以确保Microsoft 365应用和服务保持强大的生产力基础上,同时在跨平台上感觉更直观、更连贯。
Skeleton
KendoUI
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

JS运行时

Pug

关闭

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