公司一个移动后端的项目用到了webapi项目搭建到外网环境共app开发者调用测试接口时遇到了一个问题接口不允许跨域调用。查阅资料明白同源策略原则根据请求报头值Origin与回应报头值Access-Control-Allow-Origin来判断是否允许调用解决方法1.ajax使用jsonpjsonp ...
分类:
移动开发 时间:
2014-06-27 15:21:12
阅读次数:
351
1. 添加References PresentationCore PresentationFramework System.Xaml WindowsBase2. 修改AssemblyInfo.xsusing System.Windows;[assembly: System.Windows...
分类:
其他好文 时间:
2014-06-26 19:09:55
阅读次数:
139
Warning: Cannot modify header information - headers already sent by出错的原因我在php程序的头部加了,header("cache-control:no-cache,must-revalidate");之后页面就出现上面的错误,看了N...
分类:
其他好文 时间:
2014-06-26 18:41:36
阅读次数:
167
前天介绍了《Sublime Text 2 绿化与汉化 [Windows篇]》,应大家要求,我特地做了汉化版分享给大家。很清新吧,但我没安装多余的插件,只是安装了几个必备的插件,如 输入法支持,GBK支持,Package Control。Emmet 是我特地加上的,如果不喜欢解压后先别运行,打开Pri...
分类:
其他好文 时间:
2014-06-26 15:15:17
阅读次数:
250
写这篇原创文章是因为看到了极客中的一篇文章《有趣各种编程语言实现2+2=5》,其中C语言是这样实现的:
int main() {
char __func_version__[] = “5″; // For source control
char b[]=”2″, a=2;
printf(“%d + %s = %s\n”, a, b, a+b);
return 0;
}
有些童鞋可能会说...
分类:
编程语言 时间:
2014-06-26 11:03:19
阅读次数:
282
最近有一个需求,就是控制系统的音量,我们都知道原理在mediaPlayer.framework框架下,有方法
// The current volume of playing music, in the range of 0.0 to 1.0.
// This property is deprecated -- use MPVolumeView for volume control instea...
分类:
其他好文 时间:
2014-06-26 10:44:33
阅读次数:
324
The example below shows how to use VB form/control as a container application to display a PowerPoint slideshow. It as shows how to make use of an und...
1)使用Package Control组件安装,然后直接在线安装按Ctrl+`调出console粘贴以下代码到底部命令行并回车:import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_...
分类:
其他好文 时间:
2014-06-25 16:38:59
阅读次数:
133
2 初识CAPWAP 2.1 CAPWAP简介 说了半天CAPWAP,连全称都还没说,汗…… CAPWAP——Control And Provisioning of Wireless Access Points Protocol Specification。其由两个部分组成:CAPWAP协议和无线B...
分类:
其他好文 时间:
2014-06-25 13:02:19
阅读次数:
178
TXTextControl.NETServerforWindowsForms控件是一个完全可编程的,用于ASP.NET服务器环境与MicrosoftInternetExplorer的文字处理引擎。它的设计理念就是在服务器端集中文字处理过程。具体功能:直接在浏览器中以所见即所得方式编辑文档TXTextControl.NETServer为您提供了一个浏..