checkform.js
来自「用struts实现的文章系统」· JavaScript 代码 · 共 22 行
JS
22 行
//Article Post Form Check
function checkForm(x)
{
x.content.value = editContent.document.body.innerHTML;
if(x.title.value == "")
{
alert("请输入文章标题!");
return false;
}
if(x.classId.selectedIndex == 0)
{
alert("请选择文章类别!");
return false;
}
if(x.content.value == "")
{
alert("请输入文章内容!");
return false;
}
return true;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?