子组件: <template> <div class="app"> <input @click="sendMsg" type="button" value="给父组件传递值"> </div> </template> <script> export default { data () { return ...
分类:
其他好文 时间:
2020-04-07 18:42:37
阅读次数:
81
AttributeError: 'NoneType' object has no attribute 'click'这句话的意思是元素没有点击的这个属性。同理,AttributeError: 'NoneType' object has no attribute 'send_keys()’,是没有输入 ...
分类:
Web程序 时间:
2020-04-07 17:00:15
阅读次数:
1084
我这里先做了一个Button按钮。用于测试所用!其Click事件: private void Btn_Test_Click(object sender, EventArgs e) { if (!ContentSQL()) { MessageBox.Show("服务器连接失败!", "服务器连接", ...
分类:
数据库 时间:
2020-04-07 12:44:53
阅读次数:
122
读入一个正整数 n,计算其各位数字之和,用汉语拼音写出和的每一位数字。 1 #include<stdio.h> 2 int main(){ 3 char c; 4 int sumt=0,t[10],count,i; 5 scanf("%c",&c); 6 while(c!='\0'&&c!='\n' ...
分类:
其他好文 时间:
2020-04-07 11:07:46
阅读次数:
64
自定义事件本质是由子组件向父组件传递信息 1、子组件,触发click点击事件时,通过$emit(...)触发父组件里自定义的事件defclick <template> <div role="alert" :class="['el-alert',changeAlert,'is-center','is- ...
分类:
其他好文 时间:
2020-04-06 20:41:57
阅读次数:
303
尽量使用css3动画,开启硬件加速 适当使用touch时间代替click时间 避免使用css3渐变阴影效果 可以用transform: translateZ(0) 来开启硬件加速 不滥用float。float在渲染时计算量比较大,尽量减少使用 不滥用web字体。web字体需要下载,解析,重绘当前页面 ...
分类:
移动开发 时间:
2020-04-06 17:34:37
阅读次数:
72
为了微信小程序接口的安全,我们需要通过一种方法,使得每次请求都需要验证一个key.但是因为异步处理的问题,我们需要先获得这个key存储后才进入下一步 1、获取开发服务器生成的key //app.js App({ userLogin:function() { var that = this; //定义 ...
分类:
微信 时间:
2020-04-06 11:38:24
阅读次数:
162
# 公共页 basepage.pyclass BasePage: def __init__(self, driver): self.driver = driver # 登录页面 loginpage.pyfrom selenium.webdriver.support.ui import WebDriv ...
分类:
Web程序 时间:
2020-04-06 00:09:29
阅读次数:
95
1 #include<stdio.h> 2 #include<string.h> 3 #define MAXN 101 4 #define INF 0x3fffffff 5 6 int g[MAXN][MAXN],n,m,dist[MAXN],result[MAXN],vis[MAXN]; 7 vo ...
分类:
其他好文 时间:
2020-04-05 18:42:38
阅读次数:
65
// 面试题50(一):字符串中第一个只出现一次的字符 // 题目:在字符串中找出第一个只出现一次的字符。如输入"abaccdeff",则输出 // 'b'。 #include <cstdio> #include <string> char FirstNotRepeatingChar(const c ...
分类:
其他好文 时间:
2020-04-05 18:12:50
阅读次数:
69