增加文章、商品列表修改排序功能

This commit is contained in:
2021-01-11 00:21:24 +08:00
parent ce7b525f1a
commit 269fd4a6fe
8 changed files with 183 additions and 26 deletions
+13
View File
@@ -37,4 +37,17 @@ function showEdit(id) {
function cancelEdit(id) {
$("#row_" + id + " .rt-editpanel").show();
$("#row_" + id + " .rt-savepanel").addClass('hidden');
}
/*********
验证是否是数字
**********/
function isInt(str) {
//如果为空,则通过校验
if (str == "")
return false;
if (/^(\-?)(\d+)$/.test(str))
return true;
else
return false;
}