易截截图软件、单文件、免安装、纯绿色、仅160KB
热门标签: c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 最新文章 :

英文环境 JAVASCRIPT(JS)提示中文出现乱码的解决办法

今天在英文版的开发环境下,JS提示如果出现如果有中文,则中文一直是乱码,
弄了好半天才改好,在此记录一下:
在<script>上加上 “charset="GBK"”
如下所示:
<script src="JS/LoginCheck1.js" type="text/javascript" charset="GBK"  language="javascript"></script>
挺好用的,希望能对其它人有所帮助! ......

推荐一个javascript写的树形菜单dtree

以下是关键特性
Unlimited number of levels
Can be used with or without frames
Remembers the state of the tree between pages ()
Possible to have as many trees as you like on a page
All major browsers suported
Internet Explorer 5+
Netscape 6+
Opera 7+
Mozilla
Generates XHTML 1.0 strict validated output
Alternative images for each node
演示地址:http://destroydrop.com/javascripts/tree/
下载地址:http://destroydrop.com/javascripts/tree/dtree.zip ......

JavaScript 指针设计错误

当函数调用如 var = add(1,2),此时函数的指针会指向全局函数
var add = function(a,b){
 return a + b;
};
var myObject = {
 value:3,
 getValue:function(){
  return this.value;
 }
};
myObject.double = function(){
 var that = this;
 var helper = function (){
  //add方法内地this指向window对象,应该算是javascript设计错误
  //所以这里用一个局部变量指向内部方法参数
  that.value = add(that.value,that.value);
 };
 helper();
};
myObject.double();
document.writeln(myObject.getValue()); ......

javascript日历

源代码如下:
<!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>
<title>simple</title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
</head>
<style>
div{font-family:宋体;font-size:12px}
#sele{
 margin:0 auto;
 background-color:#ababab;
 width:300px;
 height:30px;
 padding-top:10px;
}
#title{
margin:0 auto;
width:300px;
height:30px;
}
#tb{
margin:0 auto;
width:300px;
height:150px;
background-color:#aabb00
}
</style>
<body>
<div id="message" style="width:250px;height:150px;position:absolute;background-color:#fffffa;z-index:10;top:50px;left:300px;display:none">
您要记录的事情:
<textarea id="stort" cols="30" rows="7">
</textarea>
<input type="button" value="保存" id="saveButton" onclick="calendar.saveMessage()"& ......

Oracle或sql2005分页

/// <summary>
        /// 返回分页SQL语句
        /// </summary>
        /// <param name="selectSql">查询SQL语句</param>
        /// <param name="PageIndex">当前页码</param>
        /// <param name="PageSize">一页多少条记录</param>
        /// <returns></returns>
        public static string getPageSplitSQL(string selectSql, int PageIndex, int PageSize)
        {
            string StartSelectSql = @" select * from (select aa.*, rownum r  from (";
            int CurrentReadRows = PageIndex * PageSize;
    &n ......

Oracle或sql2005分页

/// <summary>
        /// 返回分页SQL语句
        /// </summary>
        /// <param name="selectSql">查询SQL语句</param>
        /// <param name="PageIndex">当前页码</param>
        /// <param name="PageSize">一页多少条记录</param>
        /// <returns></returns>
        public static string getPageSplitSQL(string selectSql, int PageIndex, int PageSize)
        {
            string StartSelectSql = @" select * from (select aa.*, rownum r  from (";
            int CurrentReadRows = PageIndex * PageSize;
    &n ......

oracle存储过程2

随机拿几个食品,食品的总和等于某个价格
create table test1234 ( id number);
insert into test1234 values(10);
insert into test1234 values(20);
insert into test1234 values(30);
insert into test1234 values(40);
insert into test1234 values(50);
  
create or replace procedure fun_id(v in number, v_ex_id in number)
is
  
v_flag number := 0;
   v_id number := 0;
  
v_rest number := 0;
begin
   select count(1) into v_flag from test1234 where id = v;
   if v_flag > 0 then
      select id into v_id from test1234 where id = v;
      dbms_output.put_line(v_id);
   else
      select count(1) into v_flag from test1234 where id < v and id not in (v_ex_id);
      if v_flag > 0 then
         select id into v_id from
       &nb ......
总记录数:40319; 总页数:6720; 每页6 条; 首页 上一页 [6136] [6137] [6138] [6139] 6140 [6141] [6142] [6143] [6144] [6145]  下一页 尾页
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号