方案一: <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/> 方案二: document.doc ...
分类:
移动开发 时间:
2020-03-22 17:32:01
阅读次数:
164
重点: 学习博客:https://www.cnblogs.com/zhoulifeng/p/9395295.html ...
分类:
其他好文 时间:
2020-03-22 12:20:51
阅读次数:
123
图片文件换汤不换药,只要注意前端的写法即可 1.饿了么组件可以利用 http-request 的属性对上传进行自定义 :http-request="uploadFile" 2.设置文件FormData对象传入请求 const formdata = new FormData(); const file ...
分类:
Web程序 时间:
2020-03-22 11:00:47
阅读次数:
824
给element-ui的图标设置大小,其实就是给此组件或其父组件设置字体大小 scss样式:只需要给父盒子设置字体大小 组件样式: ...
分类:
其他好文 时间:
2020-03-22 10:37:17
阅读次数:
1093
const app = document.getElementById('app'); app.innerHTML = ` <h1>JavaScript DOM</h1> <ul> <li>1</li> </ul> `; const ul = app.querySelector('ul'); ul. ...
分类:
Web程序 时间:
2020-03-21 21:47:56
阅读次数:
87
const app = document.getElementById('app'); app.innerHTML = ` <h1>JavaScript DOM</h1> `; const div = document.createElement('div'); const span = docum ...
分类:
Web程序 时间:
2020-03-21 21:29:18
阅读次数:
83
2020年3月21日 Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) Push element x onto stack. pop() ...
分类:
其他好文 时间:
2020-03-21 21:26:35
阅读次数:
59
1 class Solution 2 { 3 public: 4 int findPeakElement(vector<int>& nums) 5 { 6 int l = 0,r = nums.size() - 1; 7 while(l < r) 8 { 9 int mid = l + r >> 1 ...
分类:
其他好文 时间:
2020-03-21 21:05:39
阅读次数:
61
问题:求一个数列中,出现次数>n/3次的数字 Example 1: Input: [3,2,3] Output: [3] Example 2: Input: [1,1,1,3,3,2,2,2] Output: [1,2] 方法: 占权重法 出现次数>n/3,则可能出现最多两个结果。 将两个待选结果设 ...
分类:
其他好文 时间:
2020-03-21 14:33:14
阅读次数:
43
经过不断的调试WebDriverAgent, 现在终于可以执行ios的自动化测试脚本了,😄😄😄 # This sample code uses the Appium python client # pip install Appium-Python-Client # Then you can ...
分类:
移动开发 时间:
2020-03-21 13:18:14
阅读次数:
125