codecamp

MIP 组件概述

MIP组件有四种:内置组件、扩展通用组件、个性化组件以及广告组件。

  • 内置组件

    • 图片组件(mip-img)
    • 视频组件(mip-video)
    • mip-pix 组件(mip-pix)
    • 轮播组件(mip-carousel)
    • iframe 组件(mip-iframe)
  • 个性化组件

    • 折叠节点组件(mip-according)
    • 动图组件(mip-anim)
    • app下载组件(mip-appdl)
    • 音频组件(mip-audio)
    • 百度统计组件(mip-stats-bidu)
    • 悬浮组件(mip-fixed)
    • 表单组件(mip-form)
    • 系统区分组件(mip-html-os)
    • 页面跳转组件(mip-link)
    • 分享组件(mip-share)
  • 广告组件

    • 广告组件(mip-ad)
MIP 让搜索发现你的页面-规范升级
MIP 组件布局
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

MIP 帮助

关闭

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