1-列举所有获取 DOM 元素的方法 document.getElementById() document.getElementsByTagName() document.querySelect() document.querySelectAll() 2-列举添加 DOM 元素的方法 appendC ...
分类:
其他好文 时间:
2021-02-10 13:18:51
阅读次数:
0
function is_weixin(){ var ua = navigator.userAgent.toLowerCase(); if(ua.match(/MicroMessenger/i)=="micromessenger") { return true; } else { return fal ...
分类:
微信 时间:
2021-01-26 12:38:44
阅读次数:
0
<!-- 导航组件 navigator 0 块级元素 默认会换行 可以直接加宽度和高度 1 url 要跳转的页面路径 绝对路径 相对路径 2 target 要跳转到当前的小程序 还是其他的小程序的页面 self 默认值 自己 小程序的页面 miniProgram 其他的小程序的页面 3 open-t ...
分类:
其他好文 时间:
2021-01-19 11:47:53
阅读次数:
0
yarn add mobile-detect -S import MobileDetect from 'mobile-detect' // alert("进来了") var userAgent = navigator.userAgent;//获取userAgent信息 console.log(use ...
分类:
移动开发 时间:
2021-01-15 11:40:37
阅读次数:
0
from selenium import webdriveroptions = webdriver.ChromeOptions()# 设置为开发者模式,防止被各大网站识别出来使用了Selenium# 屏蔽 windows.navigator.webdriveroptions.add_experime ...
分类:
其他好文 时间:
2021-01-13 11:25:44
阅读次数:
0
https://www.cnblogs.com/CyLee/p/5899568.html http://zccst.iteye.com/blog/2194229 获取用户的联网状态 复制代码 if (navigator && navigator.onLine false) { alert("无法连接 ...
分类:
Web程序 时间:
2021-01-08 10:46:21
阅读次数:
0
浏览器如何获取音视频流 答:用webrtc的navigator.getUserMedia方法,方法体里主要是写下面两句话: video.src = window.URL.createObjectURL(stream); video.srcObject = stream; 这两句的作用都是获取用户音视 ...
分类:
Web程序 时间:
2020-12-17 12:25:13
阅读次数:
4
1. CanIUse 地址:https://caniuse.com/ 有时候不太确定某个Web API与浏览器、手机浏览器能否兼容?这个工具让你轻松测试Web API与浏览器的兼容情况。 当我们想要了解哪些浏览器及相应版本支持Web Share API:navigator.share(...) 在工 ...
分类:
其他好文 时间:
2020-11-27 11:38:41
阅读次数:
14
about.wxml <view class='container'> <text style='font-weight: bold; font-size: 60rpx;'> 电影周周看</text> <view> <text>我</text> <navigator style='display: ...
分类:
其他好文 时间:
2020-10-07 20:40:28
阅读次数:
30
获取元素的偏移量 获取父级节点 curEle.parentNode document.parentNode → null 父级参照物 offsetParent: 父级参照物 在同一个平面中, 最外层的元素是里面所有元素的父级参照物(和HTML层级结构没有必然的联系) 一般来说一个页面中所有的父级参照 ...
分类:
Web程序 时间:
2020-09-18 00:03:44
阅读次数:
36