在Flex中调试方法有两种:
一是用trace()函数,在flex builder中进行调试;
二是用logTarget类,如下代码:
// Create a target.
var logTarget:TraceTarget = new TraceTarget();
// Log only messages for the classes in the mx.rpc.* a...
分类:
其他好文 时间:
2014-12-18 10:24:05
阅读次数:
170
.artist .mod .info .content .abstract:after { content: '...'; position: absolute; right: 0; display: block; width: 21px; height: 20px; t...
分类:
其他好文 时间:
2014-12-17 20:45:26
阅读次数:
129
原文:http://www.tuicool.com/articles/r22YBrRDDRDD初始参数:上下文和一组依赖abstract class RDD[T: ClassTag]( @transient private var sc: SparkContext, @transient...
分类:
其他好文 时间:
2014-12-17 18:01:48
阅读次数:
249
抽象类使用abstract 修饰符对抽象类的使用有以下几点规定 抽象类只能作为其它类的基类它不能直接被实例化而且对抽象类不能使用new 操作符抽象类如果含有抽象的变量或值则它们要么是null 类型要么包含了对非抽象类的实例的引用 抽象类允许包含抽象成员虽然这不是必须的 抽象类不能同时又是...
分类:
其他好文 时间:
2014-12-17 17:55:00
阅读次数:
152
组合模式可以理解为是树的结构的一种构建方式。Composite是可以拓展的树的分支,树理论上可以无限长。package com.jayfulmath.designpattern.composite;public abstract class Company { protected St...
分类:
其他好文 时间:
2014-12-17 17:48:27
阅读次数:
219
0x1:新建立一个安卓工程一直NEXT 到Finish0x2:编写调用so代码和方法定义在MainActivity.java同目录下右键创建一个JniGg.java文件,用于调用soJniGg.java的代码如下然后右键编译一下在找到项目的目录NdkTest\bin\classes\com\ndkt...
分类:
其他好文 时间:
2014-12-17 15:56:32
阅读次数:
180
1. Parcelable接口Interface for classes whose instances can be written to and restored from a Parcel。 Classes implementing the Parcelable interface must ...
分类:
移动开发 时间:
2014-12-17 10:39:35
阅读次数:
194
ui-router has the powerful ability to define abstract states, or states that can't be navigated to, but are useful for defining a set of states with s...
分类:
Web程序 时间:
2014-12-17 06:43:01
阅读次数:
202
1.抽象类和接口实例化
在java中可以通过对象的多态性,为抽象类和接口进行实例化操作,这样再使用抽象类和接口的时候,就可以使用子类的中覆写的方法来实现。
之所以抽象类和接口类不能直接实例化,是因为内部包含了各个抽象方法,抽象方法但都是未实现的方法,无法调用。通过多态性,子类发生向上转型,所调用的全部方法,都是被覆写过的方法。
//本程序是对抽象类和接口继续实例化的操作
abstract c...
分类:
其他好文 时间:
2014-12-16 22:46:39
阅读次数:
291
在cmd输入javap显示,前提你电脑的java环境要配置好 用法:?javap?<options>?<classes>
其中,?可能的选项包括:
??-help??--help??-?????????输出此用法消息
??-version????????????...
分类:
编程语言 时间:
2014-12-16 21:11:24
阅读次数:
324