HTML
HTML
oh LAN
这个作者很懒,什么都没留下…
展开
-
HTML基本操作
HTML原创 2023-01-09 15:36:11 · 116 阅读 · 0 评论 -
js/jquery获取父窗口元素
取父窗口的元素方法:$(selector, window.parent.document);那么你取父窗口的父窗口的元素就可以用:$(selector, window.parent.parent.document);类似的,取其它窗口的方法大同小异$(selector, window.top.document);$(selector, window.opener.document);$(selector, window.top.frames[0].document);...原创 2021-06-08 11:32:00 · 8632 阅读 · 0 评论 -
小程序h5 实现全景图播放功能(如vr看房)
以vue项目为例插件官网地址https://photo-sphere-viewer.js.org具体功能配置请参考官网api项目目录结构1.安装以依赖cnpm install three -Scnpm install photo-sphere-viewer -Sb.jpg(全景图片)quanjing.vue<template> <div> <div id="viewer" ...转载 2021-05-27 10:45:44 · 6050 阅读 · 1 评论 -
正则表达式
正则去除html中img标签中的css样式 /*正则去除img中的css样式 */function removeCss(content){ let reg=/(style|class)="[^"]+"/gi; let img=/<img[^>]+>/gi; let res; if(img.test(content)) { res = content.match(img); for(let i=0;i<res.length;i++){ ..原创 2020-11-19 16:02:05 · 75 阅读 · 0 评论