在前端开发过程中,将常出现前端代码和后台服务不在一个服务器的情况,这时候前端js代码调用后台接口,会出现跨域问题。: 1、这里的域是通过URL的头部来识别的。浏览器并不会去尝试判断相同的ip地址对应着两个域或者两个域是否在同一个ip上。URL的头部指window.location.protocol ...
分类:
Web程序 时间:
2017-06-06 18:24:47
阅读次数:
288
https://www.sqlskills.com/blogs/paul/announcing-the-comprehensive-sql-server-wait-types-and-latch-classes-library/ https://www.sqlskills.com/help/wait ...
分类:
数据库 时间:
2017-06-05 21:00:50
阅读次数:
858
维护一个单调递减的栈 每次家进栈首的牛必然能够被其它栈里面的牛看到 #include <cstdio> #include <cstring> using namespace std; const int maxn = 80010; typedef unsigned long long LL; int ...
分类:
其他好文 时间:
2017-06-04 10:52:27
阅读次数:
363
1 导包 1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apach ...
分类:
编程语言 时间:
2017-05-31 16:33:53
阅读次数:
276
1.把字符串常量放在前面 通过把字符串常量房子啊比较函数equals()比较项的左边来防止偶然的NullPointerException: //Bad if(variable.equals("literal")) {...} //Good if("literal".equals(variable)) ...
分类:
编程语言 时间:
2017-05-31 14:28:49
阅读次数:
173
1660: [Usaco2006 Nov]Bad Hair Day 乱发节 Time Limit: 2 Sec Memory Limit: 64 MB Submit: 678 Solved: 326 [Submit][Status][Discuss] Description Input * Line ...
分类:
其他好文 时间:
2017-05-31 14:19:52
阅读次数:
170
HTTP 400 错误 - 请求无效 (Bad request) 介绍 您的Web服务器认为客户端发送的数据流 (例如您的浏览器或我们的 CheckUpDown 机器人 ) 是 ' 畸形的',即没有完全遵守 HTTP 协议。 因此您的 Web 服务器无法理解和处理该请求。 该错误几乎总是意味着客户端 ...
分类:
其他好文 时间:
2017-05-31 14:17:17
阅读次数:
130
TT and FF are ... friends. Uh... very very good friends -________-b FF is a bad boy, he is always wooing TT to play the following game with him. This ...
分类:
其他好文 时间:
2017-05-29 14:05:44
阅读次数:
344
Martin Fowler在Refactoring: Improving the Design of Existing Code(中译名:《重构——改善既有代码的设计》)一书中与Kent Beck一起总结了22种代码坏味(Bad Smells in Code),因为Sunny这段时间正在做一些与代码 ...
分类:
Web程序 时间:
2017-05-29 12:51:13
阅读次数:
227
1 class foo(): 2 def __init__(self): 3 pass 4 def __del__(self):#析构函数 5 print '有人要搞我啦!' 6 7 8 a=foo() 9 10 11 ----------------------------------------... ...
分类:
其他好文 时间:
2017-05-29 11:05:42
阅读次数:
167