public class OutClass{ //外部类
class InnerClass{...}//内部类
public static void main(String[] args){
InnerClass in = new OutClass().new InnerClass();//定义内部类成员变量
}
}
Web
上的视频
直到现在,仍然不存在一项旨在网页上显示视频的标准。
今天,大多数视频是通过插件(比如 Flash)来显示的。然而,并非所有浏览器都拥有同样的插件。
HTML5 规定了一种通过
video 元素来包含视频的标准方法。
http://s4/mw690/7256fe8fgd49194bf5f63&690
该程序能够根据城市的选择,自动显示后边的城区选择
xml文件
<LinearLayout
xmlns:android='http://schemas.android.com/apk/res/android'
xmlns:tools='http://schemas.android.com/tools'
android:layout_width='match_parent'
http://s15/mw690/7256fe8fgd48dc10eff0e&690
xml文件
<LinearLayout
xmlns:android='http://schemas.android.com/apk/res/android'
xmlns:tools='http://schemas.android.com/tools'
android:layout_width='match_parent'
android:layout_height='match_parent'
http://s12/mw690/7256fe8fgd3ef32f941db&690
<?xml
version='1.0' encoding='utf-8'?>
<LinearLayout
xmlns:android='http://schemas.android.com/apk/res/android'
xmlns:tools='http://schemas.android.com/tools'
android:layout_width='fill_parent'
android:layout_height='fill_parent'
android
1.单纯创建JavaScript数组:
vararr=newArray();
要点:用new关键字创建数组对象Array(),Array()对象是一个本地类,可以用new创建一个对象后使用
2.创建JavaScript数组的同时规定数组大小: