`
李瑞曦
  • 浏览: 44187 次
  • 性别: Icon_minigender_2
  • 来自: 大荔
社区版块
存档分类
最新评论
文章列表
public int getPixel(int x,int y) throws AWTException{            //函数返回值为颜色的RGB值。   Robot rb = null;                                                   //java.awt.image包中的类,可以用来抓取屏幕,即截屏。   rb = new Robot();   Toolkit tk = Toolkit.getDefaultToolkit();              //获取缺省工具包   Dimension di = tk.getScree ...
写道 public class getDBConnection { private static String DB_DRIVER="oracle.jdbc.driver.OracleDriver"; private static String DB_URL="jdbc:oracle:thin:@数据库端口"; private static String DB_USERNAME="用户名"; private static String DB_PASSWORD="密码"; //打开数据库 public static ...
<style type="text/css">/*<![CDATA[*/div {    width:200px;    height:auto!important;    height:200px;    min-height:200px;    border:1px solid green;
消息本身是作为一个记录传递给应用程序的,这个记录中包含了消息的类型以及其他信息。例如,对于单击鼠标所产生的消息来说,这个记录中包含了单击鼠标时的坐标。这个记录类型叫做T M s g,它在Wi n d o w s单元中是这样声明 ...
写道 <script type="text/javascript"> document.onkeydown = function() { if(event.keyCode==116) { event.keyCode=0; event.returnValue = false; } }; document.oncontextmenu = function() { event.returnValue = false; }; </script>  
  1.      document.formName.item("itemName") 问题 说明:IE下,可以使用document.formName.item("itemName")或document.formName.elements["elementName"]; Firefox下,只能使用document.formName.elements["elementName"]. 解决方法:统一使用document.formName.elements["elementName"] ...
做一个jsp的页面,然后又弹出一个对话框,并且把输入框的值返回到文本中。具体代码如下: 1  父页面 写道 <%...request.setCharacterEncoding ("GBK") ;%> <%...@page contentType="text/html; charset=gb2312"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <script type=&quo ...
obj.style.color= 'red '; //颜色 obj.style.fontSize= '12px; ' //字体大小 obj.style.fontFamily= '宋体 '; //字体

js 调用 action

 
window.location.href=‘***.action’
1.新建两个页面 一个是 Parent.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content=&qu ...
JS,写在head之间 <!-- 获取用户ID --> <script language="javascript" type="text/javascript" > function CloseWind(uid){ opener.setValue(uid); alert("确定为该用户添加公司?"); window.close(); } </script>    JSP 给JS传递参数 <input type="button" name="btn_Clo ...
写道 action 获取前台JSP 传过来的参数 /** * 添加公司之选择用户ID */ public Long searchUser() throws Exception{ ActionContext ctx = ActionContext.getContext(); HttpServletRequest request = (HttpServletRequest) ctx.get(ServletActionContext.HTTP_REQUEST); String str=request.getParameter("userid"); uid=Long.parse ...
package com.yao.util.date; import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Calendar;import java.util.Date; public class DateUtil { public static String defaultSimpleFormater = "yyyy-MM-dd hh:mm:ss"; /*** 默认简单日期字符串* * @return*/public static String getDe ...
路?要怎么走?   明知道现在西安工作有点难找,可是我还是那么热切的期待着。   不是要找个什么样的工作,而是,西安对于我来说,已经深深的嵌入了灵魂当中。   那里的一切都是那么的熟悉。
  不好意思,这个是转载的,不是原创   1. 对象问题1.1 Form对象现有问题:现有代码这获得form对象通过document.forms("formName"),这样使用在IE 能接受,MF 不能。解决方法:改用 作为下标运算。改为document.forms["formName"]备注上述的改用 作为下标运算中的formName是id而name1.2 HTML对象现有问题:在 IE 中,HTML 对象的 ID 可以作为 document 的下属对象变量名直接使用。在 MF 中不能。document.all("itemName&qu ...
Global site tag (gtag.js) - Google Analytics