catalog.js
来自「javascript语言获取日期时间」· JavaScript 代码 · 共 45 行
JS
45 行
//跳转到商品添加界面
function catalogadd(strnote,selectId,url,form_num)
{
var element = document.getElementById(selectId);
if (selectEmpty(strnote,element))
{
var value = element.options[element.selectedIndex].value
document.forms[form_num].action = url+"?id="+value;
document.forms[form_num].submit();
}
}
//更改商品分类信息时的验证信息
function catalogModify(selectId,form_num,shopnote,catnote,url)
{
var element = document.getElementById(selectId);
if (selectEmpty(shopnote,element))
{
if (boxCheck(form_num,catnote))
{
var value = element.options[element.selectedIndex].value
document.forms[form_num].action = url + "?shop_id="+value;
document.forms[form_num].submit();
}
}
}
//删除商品分类信息时的验证信息
function catalogDel(selectId,form_num,shopnote,catnote,url)
{
var element = document.getElementById(selectId);
if (selectEmpty(shopnote,element))
{
if (boxCheck(form_num,catnote))
{
if (checkDel())
{
var value = element.options[element.selectedIndex].value
document.forms[form_num].action = url + "?shop_id="+value;
document.forms[form_num].submit();
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?