⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 path.js

📁 几个运用了DWR框架编写的AJAX代码,
💻 JS
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -