【Enumeration】1、当一个枚举值类型已经确定后,可以使用shorter dot syntax来赋予其它值: 2、对一个枚举值switch的时候也可以使用short dot syntax: 3、Associate Value 定义: 上面extract的值均为const,把...
分类:
其他好文 时间:
2014-06-18 19:01:55
阅读次数:
206
jQuery从1.2开始就支持XMLHttp跨域请求了,具体怎么操作?jQuery中跨域访问的核心原理:JS文件注入,因为因为script标签的src属性是可以跨域的,利用script标签的src属性直接返回非本域名下的数据,具体采用的方式称为:jsonp。代码:test.html,例如位于 www...
分类:
Web程序 时间:
2014-06-18 15:51:02
阅读次数:
167
syntax:contained in:description:Adds an action to an intent filter.An element must contain one or more elements. If it doesn't contain any, noInten...
分类:
移动开发 时间:
2014-06-18 14:48:12
阅读次数:
252
经常需要根据IP地址统计apache站点访问量,最基本的脚本.根据IP访问量降序排列:#!/bin/bash
#Script_name:access_count
acc_log=/usr/local/apache2/logs/access_log
/bin/awk‘{print$1}‘$acc_log|sort|uniq-c|sort-nr执行效果:[root@zabbix~]#shaccess_count
94989192.168.1..
分类:
移动开发 时间:
2014-06-16 18:18:50
阅读次数:
332
Example syntax for Secure Copy (scp)What is Secure Copy?scpallows files to be copied to, from, or between different hosts. It usessshfor data transfer...
分类:
其他好文 时间:
2014-06-15 22:30:51
阅读次数:
290
这是我第一次写的组合条件查询,很丑,仅此纪念。(黑体总是显得跌跌撞撞没自信的赶脚有没有~~) 1 USE [exercise] 2 GO 3 /****** Object: StoredProcedure [dbo].[procstudent] Script Date: 11/10/2013 23:...
分类:
其他好文 时间:
2014-06-15 20:59:38
阅读次数:
211
ajax的核心是通过XmlHttpRequest获取非本页内容,而jsonp的核心则是动态添加然后php方就会执行backfunc(传递参数);所以流程就会分二步:1:针对jsonp的预处理,主要是转化拼接这些参数,然后处理缓存,因为jsonp的方式也是靠加载script所以要关闭浏览器缓存insp...
分类:
Web程序 时间:
2014-06-15 06:22:44
阅读次数:
355
USE [Travel]GO/****** Object: StoredProcedure [dbo].[NoticeGetPagedData] Script Date: 06/13/2014 20:44:51 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIF...
分类:
数据库 时间:
2014-06-14 19:45:10
阅读次数:
255
JS的跨域:跨域名获取数据,a域名获取b域名中的数据。解决跨域获取数据的方法也叫JSONP(JSON and Padding)JSONP方法:1:服务器代理:XMLHttpRequest代理文件2:script标签:jsonp(常用);//利用script标签的src引入外部文件的功能,src能够引...
分类:
Web程序 时间:
2014-06-14 19:01:07
阅读次数:
287
指定用户名密码启动管理服务器You can start and stop Oracle WebLogic Server Administration Servers using the WLST command line or a script. When you start or stop the...
分类:
数据库 时间:
2014-06-14 08:24:43
阅读次数:
368