移动开发
O_O_______
这个作者很懒,什么都没留下…
展开
-
uniapp 设置不同环境变量
【代码】uniapp设置不同环境变量原创 2022-07-18 11:01:13 · 1591 阅读 · 9 评论 -
rem自适应
document.addEventListener('DOMContentLoaded', function () { var html = document.documentElement; var windowWidth = html.clientWidth; var windowHeight = html.clientHeight; if(windowWidth>=750){ windowWidth=750;...原创 2020-06-30 16:14:05 · 186 阅读 · 0 评论 -
复制粘贴,手机、pc
1.引入https://cdn.bootcss.com/clipboard.js/1.7.1/clipboard.min.js2.html<button type="button" class="copy">点击复制</button>3. var txt = '要复制的内容'; var clipboard = new Clipboard('.copy', { text: function () { ...原创 2020-06-30 16:07:23 · 374 阅读 · 0 评论 -
cookie跨域清除
A页面console.log($.cookie('the_cookie'));//打印看一下<button id="aa">保存cookies</button>//设置保存cookie$("#aa").on('click',function(){ $.cookie('the_cookie', '123456789', { expires: 7, path: '/' });原创 2017-08-18 11:34:59 · 2578 阅读 · 0 评论