报错1:打包后丢到服务器中,打开是空白页 报错2:打包后想要在本地file中打开,但是打开是空白页 报错3:打包后在浏览器中打开,报错ERROR in xxx.js from UglifyJs 报错4:打包后打开页面控制台报错,Uncaught RangeError: Maximum call st ...
分类:
其他好文 时间:
2017-12-19 15:24:35
阅读次数:
187
众所周知,在UI系统中进行一些耗时操作,都会导致卡顿现象,因为一次刷新在16ms,如果当次操作过了这个时间,那么用户就能感觉到明显的卡顿,甚至引起ANR 。 对于这种情况,一般都是再起一个线程,进行一些耗时的操作,通过继承Thread 或者实现Runnable接口,重写run方法,来实现创建新线程, ...
分类:
移动开发 时间:
2017-12-19 01:33:24
阅读次数:
206
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example: Example: 题意:找到一个字符串的最长回文子 ...
分类:
其他好文 时间:
2017-12-18 19:10:59
阅读次数:
144
1 2 3 4 5 6 7 8 9 10 11 12 测试 13 14 15 16 17 18 19 ...
分类:
其他好文 时间:
2017-12-18 12:12:12
阅读次数:
118
01-复杂度2 Maximum Subsequence Sum(25 分) Given a sequence of K integers { N?1??, N?2??, ..., N?K?? }. A continuous subsequence is defined to be { N?i??, ...
分类:
其他好文 时间:
2017-12-18 11:58:55
阅读次数:
122
杜少的 blog Lecture 7:The VC Dimension 7.1 Definition of VC Dimension VC Dimension : The formal name of maximum non-break point 对有的 infinite hypothesis V ...
分类:
其他好文 时间:
2017-12-18 00:00:40
阅读次数:
167
1 #!/usr/bin/env python 2 #coding:utf-8 3 def print_max(x,y): 4 '''Prints the maximum of two numbers.打印两个数值中的最大数。 5 The two values must be integers.这两... ...
分类:
编程语言 时间:
2017-12-17 15:54:42
阅读次数:
166
http://acm.hdu.edu.cn/showproblem.php?pid=3530 题意: 给出一串序列,求出最长的序列,要求该序列内的最大值-最小值在[m,k]之间。 思路: 维护一个单调递增队列和一个单调递减队列。 ...
分类:
其他好文 时间:
2017-12-17 10:59:35
阅读次数:
156
一、vue是什么? 一个mvvm框架(库)、和angular类似,比较容易上手、小巧,让我们的代码更加专注于业务逻辑,而不是去关注DOM操作 二、vue和angular之间的区别 vue——简单易学 指令以v-xx 一片html代码配合上json,再new出来vue实例 个人维护项目 适合:移动端项 ...
分类:
Web程序 时间:
2017-12-16 13:08:17
阅读次数:
203
1.安装 2.编辑配置文件 3.运行 在项目根目录执行webpack可以启动默认配置文件webpack.config.js运行指定配置文件执行webpack --config webpack.develop.config.js 把运行命令放到package.json文件中 启动命令还可以加很多参数w ...
分类:
Web程序 时间:
2017-12-15 20:11:25
阅读次数:
255