摘要: <body> <input type="file" accept="image/*" onchange="loadFile(event)" /> <img id="previewContainer" src="" alt=""/> <script> const output = document.q 阅读全文
posted @ 2020-07-21 11:05 demo_you 阅读(240) 评论(0) 推荐(0)
摘要: 可滑动,选定的tabItem自动居中,支持x和y两种模式 <template> <div class="scrollBarWrapper" :style="scrollBarWrapperStyle"> <div class="scrollBarContent" :class="direction 阅读全文
posted @ 2020-07-15 10:24 demo_you 阅读(1290) 评论(1) 推荐(1)
摘要: 使用new RegExp('规则','修饰符(匹配模式)')或者/规则/修饰符(匹配模式)来创建一个正则表达式 const reg = /box/; // 检查一个字符串中是否包含字符串'box' const str = 'big box'; 正则的方法 test方法 正则表达式.test(字符串) 阅读全文
posted @ 2020-07-14 15:43 demo_you 阅读(234) 评论(0) 推荐(0)