留下两个例子作为参考,1. 追逐小方块的例子2. HashMap 和 Iterator
的例子Example one:import acm.graphics.*;import acm.program.*;import
java.awt.*;import java.awt.event.*;public...
分类:
编程语言 时间:
2014-06-29 12:16:41
阅读次数:
209
基本思路:
通过使用jquery选择器得到对应表单的jquery对象,然后使用attr方法修改对应的action
示例程序一:
默认情况下,该表单会提交到page_one.html
点击button之后,表单的提交地址就会修改为page_two.html
jquery test
修改form的提交地址为page_two.html
var $fun = ...
分类:
Web程序 时间:
2014-06-29 07:33:12
阅读次数:
236
5 函数与闭包
使用 func 声明一个函数。调用函数使用他的名字加上小括号中的参数列表。使用 -> 分隔参数的名字和返回值类型。
func greet(name: String, day: String) -> String {
return "Hello \(name), today is \(day)."
}
greet(...
分类:
移动开发 时间:
2014-06-29 07:20:12
阅读次数:
288
上一篇
文档中谈到了在日历图标上显示当前日期,
现在我添加了几行代码,可以在日历图标上显示对应的星期;
修改源码是在Utilities.java中
函数createCalendarIconBitmap
添加几行代码:int dayOfWeek = Calendar.getInstance().get(Calendar.DAY_OF_WEEK);
String weekS...
分类:
移动开发 时间:
2014-06-20 11:13:46
阅读次数:
240
Functions and Closures 函数和封闭性(闭包)
Functions 函数的使用
Swift中的函数定义和OC中有明显的区别了,使用func定义函数,在括号中定义参数和类型,用 -> 定义返回值类型
func greet(name: String, day: String) -> String {
return "Hello \(name), tod...
分类:
其他好文 时间:
2014-06-20 09:41:20
阅读次数:
268
视图可以屏蔽某些基表的信息,或是join多个基表组成一个复杂查询,视图本身也是可以进行DML操作,但受一些条件的限制。
首先我们看下官方文档对视图进行DML操作的要求说明:
The following notes apply to updatable views:
An updatable view is one you can use to insert, update, or...
分类:
其他好文 时间:
2014-06-07 16:08:45
阅读次数:
264
题目
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.
For example, given
s = "leetcode",
dict =...
分类:
其他好文 时间:
2014-06-07 13:53:28
阅读次数:
247
enc_ctx->profile =FF_PROFILE_H264_MAIN
; enc_ctx->time_base.den = 24; enc_ctx->time_base.num =
1; enc_ctx->gop_size = 8; /* emit one intra frame ...
分类:
其他好文 时间:
2014-06-07 09:45:45
阅读次数:
486
根据https://github.com/blueimp/jQuery-File-Upload/wiki/Browser-supportThe
following browsers support at least one form ofAJAXstyle file uploads, either
...
分类:
Web程序 时间:
2014-06-07 09:39:54
阅读次数:
1581