摘要: 最开始使用雷达模拟器的,发现雷电模拟器不能切换输入法了,所以换一个模拟器可以了。 1. 安装夜神模拟器 2.安装搜狗输入法 3. 启用搜狗输入法 4. 切换搜狗输入法. 5. 完成 阅读全文
posted @ 2024-03-26 15:07 本溢 阅读(135) 评论(0) 推荐(0) 编辑
摘要: window.location.href = url; 阅读全文
posted @ 2020-11-24 17:31 本溢 阅读(564) 评论(0) 推荐(0) 编辑
摘要: var eventPassthrough = ''; window.addEventListener("orientationchange", function() { if (window.orientation 0) { console.log('竖屏'); eventPassthrough = 阅读全文
posted @ 2020-07-09 18:26 本溢 阅读(314) 评论(0) 推荐(0) 编辑
摘要: { "Print to console": { "prefix": "vue", "body": [ "<template>", " <div>", " </div>", "</template>", "", "<script>", " export default {", " data() {", 阅读全文
posted @ 2020-04-02 14:49 本溢 阅读(1056) 评论(0) 推荐(0) 编辑
摘要: 一 . 视频全屏可以通过css定义宽高100%来实现。 .videoBox{ width: 100%; height: 100%; } #example_video{ width: 100%; height: 100%; } <div class="videoBox"> <video id="exa 阅读全文
posted @ 2020-03-24 22:08 本溢 阅读(14265) 评论(0) 推荐(0) 编辑
摘要: 本文转载自:https://juejin.im/post/5d8989296fb9a06b1f147070 目的是方便自己查看,也希望能分享给更多的人。 1.css禁用鼠标事件 .disabled { pointer-events: none; cursor: default; opacity: 0 阅读全文
posted @ 2020-03-20 09:04 本溢 阅读(698) 评论(0) 推荐(0) 编辑
摘要: 1. 安装搜狗输入法。 2. 设置搜狗输入法。 这样就可以点击返回了,打开测试的app见下图效果。 阅读全文
posted @ 2020-01-03 15:00 本溢 阅读(5855) 评论(0) 推荐(1) 编辑
摘要: 1. common新建mask.vue文件。 <template> <view> <view class="cpt-mask"> </view> </view> </template> <script> export default { } </script> <style> .cpt-mask { 阅读全文
posted @ 2020-01-03 13:16 本溢 阅读(10288) 评论(3) 推荐(1) 编辑
摘要: // 过滤无效的属性 const values = { name: '', age: '', address: '北京', }; Object.keys(values).map(key => (!values[key] ? delete values[key] : '')); console.log 阅读全文
posted @ 2019-12-16 10:54 本溢 阅读(11082) 评论(0) 推荐(0) 编辑