摘要:
function dateFormat(dateString,format) { if(!dateString)return ""; var time = new Date(dateString.replace(/-/g,'/').replace(/T|Z/g,' ').trim()); var o = { ... 阅读全文
摘要:
1、win7安装IIS后,本地测试没有问题,说明IIS的配置正确,如果本地测试有问题,先检查IIS安装配置情况。 2、检查计算机网络情况,发现本地网络正常。如果win7不能访问网络,请先正确配置网络连接。 3、检查防火墙设置,本文遇到的错误就是由于Win7自带的防火墙阻止了网站程序的端口,使得远程用... 阅读全文
摘要:
1.ie6下margin是两倍: display:inline;2.ie6下li标签之间有空隙: 在li下加float:left;删除重复记录delete from Userswhere [Uid] not in( select MAX([Uid]) as s from Users group by UName,UPwd)按月份查询 select * from Works where DATEPART(m,[WUpLoadTime])=1最近一周的记录 select * from Works where datediff(d,WUpLoadTime,getdate())n1 and r... 阅读全文
摘要:
1、实验环境准备 MyEclipse8.6 Tomcat6.0.20 MySQL5.1 数据库脚本程序CREATE TABLE user (id int(11) NOT NULL auto_increment,username varchar(50) default NULL,password varchar(50) default NULL,PRIMARY KEY (id));INSERT INTO user VALUES ('1', 'admin', 'admin');环境的搭建这里就不写了,网上有很多这样的资料。2、开始搭建!打开M 阅读全文
摘要:
首先安装正确的AccessDatabaseEngine.exehttp://www.microsoft.com/zh-cn/download/details.aspx?id=13255office2010要安装2010的AccessDatabaseEngine.exe由于安装的是32位的office2010,所以要在启用32位应用程序上选择true. 阅读全文
摘要:
overflow: hidden; 阅读全文
摘要:
MYSQL不支持:Select * Into new_table_name from old_table_name;替代方法:Create table new_table_name (Select * from old_table_name); 阅读全文
摘要:
jquery:$(function(){ document.onkeydown = function (e) { var ev = document.all ? window.event : e; if (ev.keyCode == 13) { dologin(); } }})js:document.onkeydown=function(){ if (event.keyCode == 13){ alert('回车键.'); } else{ alert('你按错了键.'); }} 阅读全文
摘要:
jquery取索引使用eq函数。eq() 选择器选取带有指定 index 值的元素。index 值从 0 开始,所有第一个元素的 index 值是 0(不是 1)。经常与其他元素/选择器一起使用,来选择指定的组中特定序号的元素。例子:$('#test').children().eq(1).css({'display':'inline-block'});将id为test的元素的第二个子元素样式设置为'display':'inline-block'。另一种写法$(":eq(index)")如:$(& 阅读全文
摘要:
this.options[this.selectedIndex].text$("#zhiye").change(function () { alert($(this).find('option:selected').text()); }) 阅读全文