java 创建一个JDBC表格模型 代码段

execute ("INSERT INTO EMPLOYEES VALUES " + "('Amy', 'Software Engineer', 50000 )"); statement.execute ("INSERT

e98123 2016-01-19   974   0
Java  

jquery输入框添加默认值,提交表单,获取字符串长度,并截取字符串 代码段

1,jquery输入框添加默认值 因为要保持页面中查询的条件不变,所以将条件提交到action后再封装到对应的bean中,然后再传回到查询页面,用jquery给表单填值。其中bean的值通过el表达式获取。

ymc4 2015-02-11   2225   0
jQuery  

java elasticsearch聚合查询实例 代码段

org.elasticsearch.action.search.SearchRequestBuilder; import org.elasticsearch.action.search.SearchResponse;

码头工人 2016-01-19   9941   0

Android开发中apk安装包常用工具 代码段

String absPath) { Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse("file://"

f663x 2015-03-14   970   0
Android  

获取Android手机信息的工具类PhoneHelper 代码段

phone) { Intent phoneIntent = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:" + phone)); context.star

yne7 2015-03-29   1974   0
Android  

Android下图片的放大和缩小代码 代码段

MotionEvent.ACTION_DOWN: last.set(curr); start.set(last); mode = DRAG; break; case MotionEvent.ACTION_MOVE:

g2b4 2015-03-22   1042   0
Android  

Android画板实现 代码段

getY(); switch (event.getAction()) { case MotionEvent.ACTION_DOWN: mPath.moveTo(pointX, pointY);//将路径移动到点(pointX

dfd7 2015-12-06   873   0
Android  

java Struts2和Freemarker整合应用静态页面 代码段

type的实现。 package com.mobilesoft.esales.webapp.action; import java.io.BufferedWriter; import java.io

SimoneNewco 2016-01-30   3726   0
基础   Java  

iOS时间选择框 代码段

 " style:UIBarButtonItemStylePlain target:self action:@selector(removeView)];          UIBarButtonIt

jopen 2015-12-10   1098   0
IOS  

Android APP代码拨打电话和短信分享 代码段

Android APP拨打电话: Intent intent=new Intent(Intent.ACTION_DIAL,Uri.parse("tel:"+888888)); startActivity(intent);

yg3n 2015-06-04   1711   0
Android  

UIActionSheet的使用 代码段

NSLog(@"键盘马上出来了,%@",notice.userInfo); // UIActionSheet * action=[[UIActionSheet alloc] initWithTitle:str delegate:self

jopen 2015-06-26   702   0
IOS  

创建Android桌面上的应用程序的快捷方式图标 代码段

menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R

c6b4 2015-01-19   2969   0
Android  

Andriod实现刮刮卡的效果 代码段

MotionEvent.ACTION_DOWN: mLastX = x; mLastY = y; mPath.moveTo(x, y); break; case MotionEvent.ACTION_MOVE: float

wmp4 2015-07-30   977   0
Android  

获取android手机中已安装应用信息以及应用安装和卸载代码集合 代码段

apk_url){ try { Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(new File(apk_url))

wc7n 2015-02-15   2574   0
Android  

Android自动获取短信验证码 代码段

"SMSReceiver"; public static final String SMS_RECEIVED_ACTION = "android.provider.Telephony.SMS_RECEIVED"; @Override

jopen 2015-03-06   5282   0
Android  

Android 简单的 左右上下手势 判断 代码段

MotionEvent.ACTION_DOWN: startx = event.getX(); starty = event.getY(); break; case MotionEvent.ACTION_MOVE:

jopen 2015-08-24   1029   0
Android  

Python简单调用WebService 代码段

webservice URL here. def getQuote(self, symbol): action = "urn:xmethods-delayed-quotes#getQuote" request

b573 2015-01-24   1944   0
Python  

读取注册表键值对的C#代码 代码段

(RegistryKey keyRun = Registry.LocalMachine.OpenSubKey(@”Software\Microsoft\Windows\CurrentVersion\Run”)) { foreach

wb26 2015-08-20   705   0
C#  

C#读取windows注册表键值 代码段

masterKey = Registry.LocalMachine.CreateSubKey ("SOFTWARE\\Test\\Preferences"); if (masterKey == null) {

MiltonGetz 2016-02-20   3678   0
C#   注册表   Windows  

python实现简单的soap客户端 代码段

webservice URL here. def getQuote(self, symbol): action = "urn:xmethods-delayed-quotes#getQuote" request

jopen 2015-06-24   860   0
Python  
1 2 3 4 5 6 7 8 9 10