自动安装:1、通过快捷键 ctrl+` 或者 View > Show Console 菜单打开控制台2、粘贴对应版本的代码后回车安装适用于 Sublime Text 3:import urllib.request,os;pf='Package Control.sublime-package';ipp...
分类:
其他好文 时间:
2014-08-10 21:31:10
阅读次数:
319
Inversion of Control Containers and the Dependency Injection patternIn the Java community there's been a rush of lightweight containers that help to a...
分类:
其他好文 时间:
2014-08-10 21:06:00
阅读次数:
423
Setting values and creating objects and arrays one at a time gives you total control but it is more verbose than other options. Creating JSON Copy imageCopy ?1JArray array = new JArray(); ?2JVal...
分类:
Web程序 时间:
2014-08-10 19:01:30
阅读次数:
284
hdu 4289 Control(网络流 最大流+拆点)(模板)...
分类:
其他好文 时间:
2014-08-09 23:20:09
阅读次数:
298
三层架构并非MVC,MVC是一个非常早就有的经典的程序设计模式,M-V-C分为三层,M(Model)-V(View)-C(Control)。而web开发中的三层架构是指:数据訪问层(DAL-DatabaseAccessLayer),业务逻辑层(BLL-BusinessLoginLayer),以及用户...
分类:
其他好文 时间:
2014-08-09 15:50:39
阅读次数:
408
Acontrol registeris aprocessor registerwhich changes or controls the general behavior of aCPUor other digital device. Common tasks performed by contro...
分类:
其他好文 时间:
2014-08-09 04:54:31
阅读次数:
356
import urllib2,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path();
os.makedirs( ...
分类:
其他好文 时间:
2014-08-09 00:19:46
阅读次数:
262
由于浏览器安全方面的限制,大多数 "Ajax" 请求遵守同源策略;请求无法从不同的域、子域或协议成功地取回数据。如果在不同域下访问就会出现提示:
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1' is therefore not allowed access.
因此解决方法:
1.采用同域策略,在同一域名下。
2.在服务端设置属性,如:php服务端...
分类:
Web程序 时间:
2014-08-08 16:04:36
阅读次数:
297
遍历窗口,获得控件句柄1 EnumChildWindows(hwndDlg, (WNDENUMPROC)EnumChildProc, NULL);回调函数 1 BOOL CALLBACK EnumChildProc(HWND hwnd, LPARAM lParam ) 2 { 3 char ...
分类:
其他好文 时间:
2014-08-08 15:15:36
阅读次数:
324
通常定义Controller时一般都定义成public:package net.mingyang.modules.system;@Controller@RequestMapping("/control/system/config")public class ConfigController{ ...
分类:
Web程序 时间:
2014-08-08 12:06:15
阅读次数:
268