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