摘要: 执行以下命令 NODE_OPTIONS="--openssl-legacy-provider" 然后 npm run serve 阅读全文
posted @ 2024-04-29 18:13 luckylou 阅读(0) 评论(0) 推荐(0) 编辑
摘要: <template> <a-input-search v-model:value="searchText" allow-clear @search="onSearch" @clear="clearSearch" placeholder="请输入" /> <a-button @click="clear 阅读全文
posted @ 2024-03-21 15:08 luckylou 阅读(62) 评论(0) 推荐(0) 编辑
摘要: &:focus { border-color: var(--ant-primary-color); background: var(--ant-primary-color); } &:focus:hover { border-color: var(--ant-primary-color-hover) 阅读全文
posted @ 2024-03-15 15:41 luckylou 阅读(9) 评论(0) 推荐(0) 编辑
摘要: <style scoped lang="sass"> .main_wrapper padding: 0 53px position: relative top: -20px /deep/ .el-tabs__item height: 30px line-height: 30px color: #ff 阅读全文
posted @ 2024-02-26 14:53 luckylou 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Object.entries() 静态方法返回一个数组,包含给定对象自有的可枚举字符串键属性的键值对。 JavaScript Demo: Object.entries() const object1 = { a: 'somestring', b: 42, }; for (const [key, va 阅读全文
posted @ 2024-01-24 15:11 luckylou 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 无论是对待工作还是生活我们都需要有一个度。过度的追求可能会导致我们的身心疲惫甚至可能会带来无法挽回的后果。所以,我们应该学会适度,既要有追求,又要懂得满足只有这样,我们的生活才能更加和谐我们的心灵才能更加平静记住,凡事有度过则为灾,这是生活的智慧也是我们应该牢记的生活准则。 阅读全文
posted @ 2023-11-08 09:45 luckylou 阅读(4) 评论(0) 推荐(0) 编辑
摘要: let ua = uni.getSystemInfoSync().ua; // 判断是否在微信内 if (ua.match(/MicroMessenger/i) == "MicroMessenger") { wx.miniProgram.getEnv((res) => { if (res.minip 阅读全文
posted @ 2023-10-19 14:21 luckylou 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Html5原生的就能够支持拍照选择图片,不需要JS调用。 下面的是单一调用的方式: <!-- 调用照相机,拍照 --> <input type="file" accept="image/*" capture="camera"> <!-- 调用摄像机,视频 --> <input type="file" 阅读全文
posted @ 2023-09-19 11:16 luckylou 阅读(151) 评论(0) 推荐(0) 编辑
摘要: html2canvas(that.$app, { 'width' : that.$app.get(0).offsetWidth, 'height' : that.$app.get(0).scrollHeight, 'background' : '#fff', 'scale': window.devi 阅读全文
posted @ 2022-12-07 14:32 luckylou 阅读(212) 评论(0) 推荐(0) 编辑
摘要: var base64Data = canvas.toDataURL("image/png"); var iframe = "<iframe width='100%' height='100%' src='" + base64Data + "'></iframe>"; var x = window.o 阅读全文
posted @ 2022-12-07 14:03 luckylou 阅读(156) 评论(0) 推荐(0) 编辑