移动端web缩放有两种: 1.双击缩放; 2.双指手势缩放。 在iOS 10以前,iOS和Android都可以通过一行meta标签来禁止页面缩放 但iOS 10开始,meta设置在Safari内无效了。 后来在网上看到一个解决方案: 经过测试,这种方法只能禁止双击缩放。只好继续找解决方案了。 原来在 ...
分类:
移动开发 时间:
2019-03-12 21:05:25
阅读次数:
462
题目内容如下: Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Example 2: 虽然是暴 ...
分类:
其他好文 时间:
2019-03-11 23:47:07
阅读次数:
166
You are given n pairs of numbers. In every pair, the first number is always smaller than the second number. Now, we define a pair (c, d) can follow an ...
分类:
其他好文 时间:
2019-03-11 16:25:49
阅读次数:
200
题目:最长的回文串 Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Example 2: 解答 ...
分类:
其他好文 时间:
2019-03-10 11:14:21
阅读次数:
126
Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l ...
分类:
其他好文 时间:
2019-03-10 09:19:40
阅读次数:
146
这是悦乐书的第 270 次更新,第 284 篇原创 01 看题和准备 今天介绍的是LeetCode算法题中Easy级别的第136题(顺位题号是594)。我们定义一个和谐数组是一个数组,其最大值和最小值之间的差值恰好为1。给定一个整数数组,在其所有可能的子序列中找到其最长的和谐子序列的长度。例如: 输 ...
分类:
编程语言 时间:
2019-03-08 09:15:25
阅读次数:
190
"link" 题目大意:Petya写了一个假的序列求max cpp int fast_max(int n, int a[]) { int ans = 0; int offset = 0; for (int i = 0; i using namespace std; const int xkj = 1 ...
分类:
其他好文 时间:
2019-03-06 15:09:05
阅读次数:
154
命令: spider.py 用hashlib来制作哈希值来放在Redis中, 可以减少放在Redis中的为了校验是否存在的内容 spider.py settings.py pipelines.py ...
分类:
其他好文 时间:
2019-03-06 00:55:27
阅读次数:
175
59、(16-8)choosetwo:WhichtwostatementsaretrueregardingtheUSINGandONclausesintablejoins?A)TheONclausecanbeusedtojointablesoncolumnsthathavedifferentnamesbutcompatibledatatypes.B)Amaximumofonepairofcolum
分类:
数据库 时间:
2019-03-05 13:56:20
阅读次数:
129
Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l ...
分类:
其他好文 时间:
2019-03-05 11:15:23
阅读次数:
140