path.js
来自「几个运用了DWR框架编写的AJAX代码,」· JavaScript 代码 · 共 28 行
JS
28 行
var path, re;
var path = window.location.pathname;
re = /\.asp/g;
path = path.replace(re,"");
re = /\.shtml/g;
path = path.replace(re,"");
re = /\//g;
path = path.replace(re,"");
document.write('<input type=hidden name=p_id value="'+path+'">');
document.write('<SCRIPT LANGUAGE="JavaScript1.1" SRC="http://comment.ccw.com.cn/review.asp?reviewPageID='+path+'"></SCRIPT>');
function checknewspageform1()
{
if (document.newspageform1.content.value=="")
{
alert("评论不能为空!");
document.newspageform1.content.focus();
return false;
}
if (document.newspageform1.email.value==""&&document.newspageform1.uname.value!="")
{
alert("请输入Email!");
document.newspageform1.email.focus();
return false;
}
return true;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?