This post introduces the principle of the use
of switch-pattern.
分类:
编程语言 时间:
2014-05-22 16:15:39
阅读次数:
280
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Threading.Tasks;namespace Lambda表达式{
class Program ...
分类:
其他好文 时间:
2014-05-22 16:16:25
阅读次数:
292
sdfsdfsdfrgrefg sdfsdfsdfrgrefg sdfsdfsdfrgrefg
sdfsdfsdfrgrefg sdfsdfsdfrgrefg sdfsdfsdfrgrefg 用特定的样式包起来 ...
分类:
其他好文 时间:
2014-05-22 16:17:41
阅读次数:
238
Runtime类,代表java程序的运行时环境,每个java程序都有一个与之对应的Runtime实例。应用程序通过该对象与其运行时环境项链。应用程序不能创建自己的Runtime实例,但是可以通过Runtime类的静态方法getRuntime()获取与之关联的Runtime对象。StringBuild...
分类:
其他好文 时间:
2014-05-22 16:18:20
阅读次数:
215
vs2010下的代码提示快捷键:CTRL +
Jstep:窗口类赋值(12个参数)注册窗口类创建窗口消息循环#include#includeLRESULT CALLBACK WindowProc(HWND
hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);...
Android BluetoothAndroid
4.4上蓝牙协议栈采用的是BRCM和Google共同开发的bluedroid,代替了之前的Bluez.一、 Bluetooth 源码分布 (基于Android
4.4 )1. packages/apps/Settings/src/com/andr.....
分类:
移动开发 时间:
2014-05-22 16:23:06
阅读次数:
1948
19> Hanzi = >. >20>
io:format("~ts",[Hanzi]).汉字ok21> io:format("~w",[Hanzi]). >ok
分类:
其他好文 时间:
2014-05-22 16:22:29
阅读次数:
222
一般情况下需要组件重写都是由于以下2个原因:1、在FLEX已有组件无法满足业务需求,或是需要更改其可视化外观等特性时,直接进行继承扩展。2、为了模块化设计或进一步重用,需要对FLEX组件进行组合。而Flex组件开发有2种方式:AS方式和MXML方式。对于上述第一个原因我一般采用AS方式,通过继承UI...
分类:
其他好文 时间:
2014-05-22 16:21:44
阅读次数:
225
俗话说不作死就不会死,今天作死了一回,写了一个比较二逼的函数,遇到了同步Ajax引起的UI线程阻塞问题,在此记录一下。
事情起因是这样的,因为页面上有多个相似的异步请求动作,本着提高代码可重用性的原则,我封装了一个名为getData的函数,它接收不同参数,只负责获取数据,然后把数据return...
分类:
编程语言 时间:
2014-05-22 16:21:04
阅读次数:
328
事件就是用户或浏览器自身执行的某种动作。诸如click、load、和mouseover,都是事件的名字。而响应某个事件的函数就叫做事件处理程序(或事件侦听器)。事件处理程序的名字以"on"开头,因此click事件的事件处理程序就是onclick,load事件的事件处理程序就是onload。以下是跨浏...
分类:
编程语言 时间:
2014-05-22 16:23:41
阅读次数:
393
一、开发前奏1.公司标示使用反向域名:正向域名 www.baidu.com
用来标示一台网络主机;反向域名 cn.itcast.Mydemo 用来标示产品的,cn.com.abc.product。因为大家都喜欢好名字
weibo,所以就有新浪微博,腾讯微博。2. Bundle Identifier:...
分类:
移动开发 时间:
2014-05-22 16:25:42
阅读次数:
442
using System;using System.Collections.Generic;using
System.Text;using System.Linq;namespace LinQ{ class Program { static void
Main(string...
分类:
其他好文 时间:
2014-05-22 16:27:07
阅读次数:
241
Reverse digits of an integer.Example1:x = 123,
return 321Example2:x = -123, return -321 1 class Solution { 2 public: 3 int
reverse(int x) { 4 ...
分类:
其他好文 时间:
2014-05-22 16:26:23
阅读次数:
165
利用objective-c的category特性,修改UILabel的绘制代码
分类:
其他好文 时间:
2014-05-22 16:27:52
阅读次数:
185
using System;using System.Collections.Generic;using
System.Linq;using System.Text;namespace 抽象工厂{ class Program { static void
Main(string...
分类:
其他好文 时间:
2014-05-22 16:29:48
阅读次数:
230