前言这几天,第三轮全站优化结束,测试项目在2G首屏载入速度取得了一些优化成绩,对比下来有10s左右的差距:这次优化工作结束后,已经是第三次大规模折腾公司框架了,这里将一些自己知道的移动端的建议提出来分享下,希望对各位有用文中有误请您提出,以免误人自误技术选型单页or多页spa(single page...
分类:
移动开发 时间:
2015-06-13 20:10:06
阅读次数:
309
题目意思:一个int数组,有一个数只出现一次,其他数均出现两次,找到这个唯一数知识普及:~:非运算,单目运算符1为0,0为1; &:与运算,都为1则为1,否则为0 |:或运算,全为0则为0,否则为1 ^:异或运算,相同为0,不同为1思路:将数组中元素进行异或运算,则只剩下0...
分类:
其他好文 时间:
2015-06-12 11:31:24
阅读次数:
102
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2015-06-11 16:45:25
阅读次数:
88
The Single Responsibility PrincipleRobert C. Martin (Uncle Bob)ONE OF THE MOST FOUNDATIONAL PRINCIPLES OF GOOD DESIGN IS:
Gather together those things that change for the same reason, and separate tho...
分类:
其他好文 时间:
2015-06-11 09:26:36
阅读次数:
115
1.概述单点登录(Single Sign On),简称为 SSO,是目前比较流行的企业业务整合的解决方案之一。SSO的定义是在多个应用系统中,用户只需要登录一次就可以访问所有相互信任的应用系统。耶鲁大学(yale)开发的单点登录(Single Sign On)系统称为CAS(Central Auth...
分类:
其他好文 时间:
2015-06-11 00:06:31
阅读次数:
171
继承映射在 Annotation 中使用 @Inheritance 注解,并且需要使用 strategy 属性指定继承策略,继承策略有 SINGLE_TABLE、TABLE_PER_CLASS 和 JOINED 三种。 一、SINGLE_TABLE SINGLE_TABLE 是将父类和其所有的子类...
分类:
Web程序 时间:
2015-06-10 15:57:45
阅读次数:
139
1 题目:Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of the preceding elemen...
分类:
其他好文 时间:
2015-06-10 13:56:27
阅读次数:
97
You know — one loves the sunset, when one is so sad... 你知道的—当一个人情绪低落的时候,他会格外喜欢看日落...... If someone loves a flower, of which just one single blossom gr...
分类:
其他好文 时间:
2015-06-10 12:15:43
阅读次数:
106
SSO统一验证 SSO(Single Sign On ),SSO统一验证的目的是为了让多个系统使用统一登录入口,用户只需要登录其中一个系统,在cookie时间内便可以不用登录,就直接进入系统了。CAS简介 CAS是SSO的一个框架,全称为:Central Authentication S...
分类:
其他好文 时间:
2015-06-10 11:53:49
阅读次数:
139
题目:
Regular Expression Matching
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the entire input string (not partial).
The...
分类:
其他好文 时间:
2015-06-10 09:02:26
阅读次数:
114