02 2021 档案
摘要:1.python局部作用域引用错误。因为 test 函数中的 num使用的是局部,未定义,所以无法进行修改 num = 10 #全局定义 def test(): num = num+ 1 #局部未定义 print(anum) test() 2.改为 num = 10 #全局定义 def test()
阅读全文
摘要:1.本页面 <template> <view class='bottompay'> <view class="pay-btns" @click="handleSettleorder()"> <text>点击跳转</text> </view> </view> </template> <script>
阅读全文
摘要:1.bindinput 事件 键盘输入时触发 bindinput: function (e) { this.setData({ inputValue: e.detail.value }) }, 2.bindfocus 事件 输入框聚焦时触发 bindfocus : function (e) { th
阅读全文
摘要:position定位通过顶部,底部,左侧和右侧属性进行定位 1.static(占文档流) 默认值,没有定位。 2.fixed(不占文档流) 相对于浏览器进行定位,固定在浏览器的某个位置,不会随着滚动条进行滚动 <!DOCTYPE html> <html> <head> <meta charset="
阅读全文