📄 catalog.js
字号:
//跳转到商品添加界面
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -