摘要:
Slot使用1、组件中有单个或多个未命名slot标签时,如下:<Child><span style=”color:red;”>hello world</span></Child> <template> <div><slot></slot><slot style=”color:blue;” >这是在s 阅读全文
摘要:
手机中的方位轴在Web应用中调用手机陀螺仪接口//摇一摇(使用DeviceOrientation事件, 本质是计算偏转角)//测试中发现有些设备不支持if(window.DeviceOrientationEvent){$(window).on('deviceorientation',function 阅读全文