摘要: 一、常用的base.css文件(也是比较简略的,但按需增加) body,ul,li,ol,dl,dd,h1,h2,h3,h4,h5,h6,input,p{ margin:0;} ul,ol { padding:0;} img { border:none;} .clear{zoom:1;} .clea 阅读全文
posted @ 2025-03-12 23:41 孤独的洋葱头 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 官方文档 https://nativesupport.dcloud.net.cn/AppDocs/usesdk/android.html# 流程 步骤 下载安装 AS https://developer.android.com/studio?hl=zh-cn 下载uniApp提供的离线SDK htt 阅读全文
posted @ 2024-06-06 10:15 孤独的洋葱头 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 231103 - i18n Ally 国际化插件使用说明 i18n Ally 国际化插件使用说明 搜索安装插件; 在项目下的settings.json 加入如下配置, localesPaths 要结合项目目录进行配置; "i18n-ally.annotationInPlace": false, "i 阅读全文
posted @ 2023-11-23 15:53 孤独的洋葱头 阅读(2613) 评论(0) 推荐(0) 编辑
摘要: 创建扫码控件 扫描比较复杂的条形码时返回数据错误, 扫到的总是一些不相干的数据, 极小概率可以扫到正确的数据, 代码中已经配置 条码类型过滤器, filters, 代码和条码如下 scan = new plus.barcode.Barcode('bcid',[ "plus.barcode.CODE1 阅读全文
posted @ 2023-11-23 15:49 孤独的洋葱头 阅读(685) 评论(0) 推荐(0) 编辑
摘要: 加上这个属性就可以了 阅读全文
posted @ 2023-09-08 17:19 孤独的洋葱头 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 随便打开一个网页 右键 - 审查元素 粘贴入以下代码: var head= document.getElementsByTagName('head')[0]; var script= document.createElement('script'); script.type= 'text/javas 阅读全文
posted @ 2023-08-31 09:30 孤独的洋葱头 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 原因分析:当表单只有一个文本框时,按下回车将会触发表单的提交事件, 导致页面的刷新。 1:el-input上使用回车事件 <el-input v-model="input" @keyup.enter.native="search1"> 解决方法一:在el-form表单加上@submit.native 阅读全文
posted @ 2023-08-31 09:26 孤独的洋葱头 阅读(1200) 评论(0) 推荐(0) 编辑
摘要: //对象的属性sex的值更新为"男" let obj = {name:"六四",age:18,sex:"女"} this.$set(obj,"sex","男") //第一个参数是对象,第二个参数是更新的属性名称,第三个参数是新的内容 //更新之后的obj是 {name:"六四",age:18,sex 阅读全文
posted @ 2023-08-21 17:56 孤独的洋葱头 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 在css中添加如上代码即可 阅读全文
posted @ 2023-07-10 17:38 孤独的洋葱头 阅读(864) 评论(0) 推荐(0) 编辑
摘要: 可以通过设置每人柱子的颜色来实现echarts在状图每人柱颜色不一样的效果。具体方法是在series中设置itemtyle属性,然后在itemStvle中设置color属性,将每个柱子的颜色设置为不同的值即可。 series: [{ type: 'bar' data: [10,20]. itemSt 阅读全文
posted @ 2023-06-16 14:09 孤独的洋葱头 阅读(2092) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示