会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zpcq
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2021年3月8日
echarts改变饼图的颜色,并把图例设置到右边,设置图例的间距
摘要: <template> <DIV> <el-card id="main" style="width:32.5%;height:1.7rem;"></el-card> </DIV> </template> <script> export default { name: "homepage", data(
阅读全文
posted @ 2021-03-08 09:00 倔强的烤马铃薯
阅读(267)
评论(0)
推荐(0)
2021年3月6日
js右击菜单
摘要: 1.html代码 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <script src="https://cdn.bootcss.com/jquery/2.2.2/jquery.js"></script>
阅读全文
posted @ 2021-03-06 14:30 倔强的烤马铃薯
阅读(11)
评论(0)
推荐(0)
2021年3月2日
python获取列表数字的下标
摘要: 因为input输入的是字符型的,所以要转换一下,不然会报错 list= [8, 23, 45, 12, 78] int =0 while int!=1: str = input('输入数字获取序号:') if float(str) in list: print(list.index(float(st
阅读全文
posted @ 2021-03-02 09:57 倔强的烤马铃薯
阅读(6)
评论(0)
推荐(0)
2021年3月1日
vue本地图片路径正确,但是for循环不显示
摘要: 今天for循环图片的时候,发现图片不显示,以下是代码 <div v-for="(item,index) in img"> <img :src="item.imc" width="80" height="80"></img> </div> img:[{imc:'./ww.png'},{name:'./
阅读全文
posted @ 2021-03-01 17:20 倔强的烤马铃薯
阅读(22)
评论(0)
推荐(0)
2021年2月25日
Python报错 :UnboundLocalError: local variable ‘num‘ referenced before assignment
摘要: 1.python局部作用域引用错误。因为 test 函数中的 num使用的是局部,未定义,所以无法进行修改 num = 10 #全局定义 def test(): num = num+ 1 #局部未定义 print(anum) test() 2.改为 num = 10 #全局定义 def test()
阅读全文
posted @ 2021-02-25 11:14 倔强的烤马铃薯
阅读(40)
评论(0)
推荐(0)
2021年2月23日
uni-app跳转页面并传参
摘要: 1.本页面 <template> <view class='bottompay'> <view class="pay-btns" @click="handleSettleorder()"> <text>点击跳转</text> </view> </view> </template> <script>
阅读全文
posted @ 2021-02-23 15:26 倔强的烤马铃薯
阅读(14)
评论(0)
推荐(0)
2021年2月5日
微信小程序 input输入事件
摘要: 1.bindinput 事件 键盘输入时触发 bindinput: function (e) { this.setData({ inputValue: e.detail.value }) }, 2.bindfocus 事件 输入框聚焦时触发 bindfocus : function (e) { th
阅读全文
posted @ 2021-02-05 10:48 倔强的烤马铃薯
阅读(30)
评论(0)
推荐(0)
CSS position定位
摘要: position定位通过顶部,底部,左侧和右侧属性进行定位 1.static(占文档流) 默认值,没有定位。 2.fixed(不占文档流) 相对于浏览器进行定位,固定在浏览器的某个位置,不会随着滚动条进行滚动 <!DOCTYPE html> <html> <head> <meta charset="
阅读全文
posted @ 2021-02-05 10:05 倔强的烤马铃薯
阅读(11)
评论(0)
推荐(0)
2021年1月30日
微信小程序调用editor富文本
摘要: 1.在微信官方文档中 找到editor组件 下面有一个示例代码,点击然后在 开发者工具中打开 就会有这几个文件 打开手机进行预览 如果在项目中引入,应该引到pages这个文件下,因为我引导其他文件下就报错了,可能是运用的还不熟练。 有时间了,在具体看看这个富文本
阅读全文
posted @ 2021-01-30 17:46 倔强的烤马铃薯
阅读(15)
评论(0)
推荐(0)
微信小程序改变data里的值
摘要: Page({ data: { inputValue: '' }, bindKeyInput: function (e) { this.setData({ inputValue: e.detail.value //用this.dada.inputValue=e.detail.value改变不了data
阅读全文
posted @ 2021-01-30 16:57 倔强的烤马铃薯
阅读(13)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告