js
悲催的孩
这个作者很懒,什么都没留下…
展开
-
js获取项目根路径
//js获取项目根路径,如:http://localhost:8083/uimcardprjfunction getRootPath(){//获取当前网址,如:http://localhost:8083/uimcardprj/share/meun.jspvar curWwwPath=window.document.location.href;//获取主机地址之后的目录,如:转载 2014-09-17 21:49:09 · 520 阅读 · 0 评论 -
使用javascript对表格进行动态修改
使用javascript对表格进行动态修改无标题文档function addrow(){var tb = document.getElementById("tab");var num = tb.rows[0].cells.length; //表格的列的数目var newrow = tb.insertRow(tb.rows.length);原创 2014-10-08 22:16:48 · 477 阅读 · 0 评论 -
javascript如何获取request中的数据
先用jsp获取request中的数据内容,然后再原创 2014-10-29 12:28:18 · 5714 阅读 · 0 评论 -
js实现搜索框提示字的特效------------获取焦点和失去焦点
js特效代码:/*搜索文本框提示字特效*/ $key = $(".search_text").val(); $(".search_text").bind("focus",function(){ $(this).val(""); }); $(".search_text").bind("blur",function(){ if( $(this).val()==""){原创 2014-11-04 12:40:33 · 1293 阅读 · 0 评论 -
如何使frameset框架的页面通过滚动条整体移动
新建一个html页面,并在其中原创 2014-11-04 17:21:08 · 2567 阅读 · 0 评论 -
浏览器缩放造成的网页错位问题
1.li标签的内容自动换行原创 2014-11-04 14:35:23 · 16351 阅读 · 1 评论