摘要:
Ext.getCmp(Ext组件ID),根据Ext组件的ID选择EXT组件。例如:点击Panel->toolbar上的button改变Panel的标题Ext.onReady(function(){ Ext.create('Ext.panel.Panel', { id: 'myPa... 阅读全文
摘要:
代码案例如下: lvXxsdMore.setOnItemClickListener(xxsdMoreListener); //对listView 注册onclick事件 lvXxsdMore.setOnScrollListener(new WScrollList... 阅读全文
摘要:
public int addWsstxCotent(final WsstxContent wsstxContent) { final String sql = "insert into wsstx_content(sstx_type,sstx_content,sstx_titl... 阅读全文
摘要:
一:AsyncTask 的使用(1)activity_main.xml (2)MainActivity.javapublic class MainActivity extends Activity { private ProgressBar asyncPb = null; private Te... 阅读全文
摘要:
select userenv('language') from dual显示:SIMPLIFIED CHINESE_CHINA.ZHS16GBK表示一个汉字占用两个字节。显示:SIMPLIFIED CHINESE_CHINA.AL32UTF8表示一个汉字占用三个字节。还可以使用下列方式验证,一个中文所占的字节数:select lengthb('中') from dual 阅读全文
摘要:
表内容如下:实现以name字段中的ABCDE的顺序排序,以及按照money字段从小到大排序。select name,moneyfrom t2order by decode(name,'A',1,'B',2,'C',3,'D',4,'E',5) , money 阅读全文
摘要:
表结构如下:将money 0, then sign returns 1. 阅读全文
摘要:
1:GetSmsService.javapublic class GetSmsService extends IntentService{ private AlarmManager alarmManager = null; private PendingIntent alarmIntent = null; public GetSmsService(){ super("WtacService"); } public GetSmsService(String name) { super(name); } @Ove... 阅读全文
摘要:
1:所需jar包2:Mysql数据库表内容如下:3:代码结构如下:(1)User.javapublic class User { private int id; private String name; private String no; private String nativePlace; private String edu; private Double math; private Double computer; private Double english; private Double sumcount; privat... 阅读全文
摘要:
开发环境:NetBeans7.4Tomcat 6.0.32一 服务端:1:新建JavaWeb工程 cxfspring-server,导入jar包如下图所示:2:在web.xml文件中添加如下配置项: contextConfigLocation classpath:spring-config.xml org.springframework.web.context.ContextLoaderListener CXFServlet org.apache.cxf.transport.servl... 阅读全文