This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | LAFBD-41 | |
---|---|---|
2 | SSNI-497 | |
3 | ABP-984 | |
4 | IPX-580 | |
5 | IPX-811 | |
6 | IPX-177 | |
7 | STARS-804 | |
8 | SMBD-115 | |
9 | ABP-968 | |
10 | ABF-017 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This code is licensed under the terms of the MIT license | |
* | |
* Deep diff between two object, using lodash | |
* @param {Object} object Object compared | |
* @param {Object} base Object to compare with | |
* @return {Object} Return a new object who represent the diff | |
*/ | |
function difference(object, base) { | |
function changes(object, base) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apache或者xmapp配置域名并跳转到特定目录 | |
1.在/conf/extra/httpd-vhosts.conf中(或者直接写到httpd.conf)增加 | |
<VirtualHost *:80> | |
DocumentRoot "E:/http/sanyou_cc" | |
ServerName "sanyou.cc" | |
</VirtualHost> | |
可以参考42行之前的举例,这里需要注意的是,apache的配置,不能用tab,不然会报错 | |
如果端口好不为80可以在httpd.conf中增加 | |
Listen 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.强制按照ie7的模式来渲染,无视doc头声明,和兼容性设置 | |
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> | |
2.强制按照ie当前版本来渲染,同上。 | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
3.直接跳转 | |
<meta http-equiv="refresh" content="0;url=pathtojump"/> | |
4.禁止网页在移动设备上的缩放(非强制禁止) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* @function: 通过a标签解析url标签 | |
* @param:url url参数是字符串,解析的目标 | |
通过IE6-9 chrome Firefox测试 | |
* | |
*/ | |
function parseURL(url) { | |
//创建一个a标签 | |
var a = document.createElement('a'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@foo: `javascript` ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/ng-template" id="one.html"> | |
<div>This is first template</div> | |
</script> | |
<script type="text/ng-template" id="two.html"> | |
<div>This is second template</div> | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function () { | |
$.ajax({ | |
type: 'GET', | |
cache: false, | |
url: location.href, | |
complete: function (req, textStatus) { | |
var dateString = req.getResponseHeader('Date'); | |
if (dateString.indexOf('GMT') === -1) { | |
dateString += ' GMT'; | |
} |