en Kooboo Logo 说明文档

Device

 

根据访问客户端是Desktop还是Mobile显示 不同的内容
 
代码 
 
<div>
    <h2 k-device="desktop">This is content for Desktop</h2>
     <h2 k-device="mobile">This is content for Mobile</h2>
</div>
 
PC访问显示 
 
<div>
    <h2>This is content for Desktop</h2>
     
</div>
 
手机访问显示
 
<div>
    
     <h2>This is content for Mobile</h2>
</div>