摘要:
<template> <a-input-search v-model:value="searchText" allow-clear @search="onSearch" @clear="clearSearch" placeholder="请输入" /> <a-button @click="clear 阅读全文
摘要:
&:focus { border-color: var(--ant-primary-color); background: var(--ant-primary-color); } &:focus:hover { border-color: var(--ant-primary-color-hover) 阅读全文
摘要:
<style scoped lang="sass"> .main_wrapper padding: 0 53px position: relative top: -20px /deep/ .el-tabs__item height: 30px line-height: 30px color: #ff 阅读全文
摘要:
Object.entries() 静态方法返回一个数组,包含给定对象自有的可枚举字符串键属性的键值对。 JavaScript Demo: Object.entries() const object1 = { a: 'somestring', b: 42, }; for (const [key, va 阅读全文
摘要:
无论是对待工作还是生活我们都需要有一个度。过度的追求可能会导致我们的身心疲惫甚至可能会带来无法挽回的后果。所以,我们应该学会适度,既要有追求,又要懂得满足只有这样,我们的生活才能更加和谐我们的心灵才能更加平静记住,凡事有度过则为灾,这是生活的智慧也是我们应该牢记的生活准则。 阅读全文
摘要:
let ua = uni.getSystemInfoSync().ua; // 判断是否在微信内 if (ua.match(/MicroMessenger/i) == "MicroMessenger") { wx.miniProgram.getEnv((res) => { if (res.minip 阅读全文
摘要:
Html5原生的就能够支持拍照选择图片,不需要JS调用。 下面的是单一调用的方式: <!-- 调用照相机,拍照 --> <input type="file" accept="image/*" capture="camera"> <!-- 调用摄像机,视频 --> <input type="file" 阅读全文
摘要:
html2canvas(that.$app, { 'width' : that.$app.get(0).offsetWidth, 'height' : that.$app.get(0).scrollHeight, 'background' : '#fff', 'scale': window.devi 阅读全文
摘要:
var base64Data = canvas.toDataURL("image/png"); var iframe = "<iframe width='100%' height='100%' src='" + base64Data + "'></iframe>"; var x = window.o 阅读全文
摘要:
$(".canebdvix").append($(this).clone(true)); clone() 方法,调用clone()方法可以生成一个被选元素的副本,复制了一个被选元素 阅读全文