有谁知道么,想改动下这几个顺序
问题截图:
var html = '';
if (InArray($param['dos'], 'edit')) {
html += '<option value="edit">编辑</option>';
}
if (InArray($param['dos'], 'del')) {
html += '<option value="del">删除</option>';
}
if ($param['type'] == 'reply') {
if (InArray($param['dos'], 'top')) {
html += '<option value="top">置顶/取消</option>';
}
} else {
$param['type'] == 'read';
if (InArray($param['dos'], 'activetop')) {
html += '<option value="activetop">动态置顶/取消</option>';
}
if (InArray($param['dos'], 'top')) {
html += '<option value="top">版内置顶/取消</option>';
}
if (InArray($param['dos'], 'high')) {
html += '<option value="high">设为精华/取消</option>';
}
if (InArray($param['dos'], 'locked')) {
html += '<option value="locked">锁定帖子/取消</option>';
}
if (InArray($param['dos'], 'move')) {
html += '<option value="move">移动文章</option>';
}
}
包含名字的【if那3行】为一个功能,换个位置
好男人:
var html = ''; if (InArray($param['dos'], 'edit')) { html += '编辑'; } if (InArray($param['dos'], 'del')) { html += '删除'; } if ($param['type'] == 'reply') { if (InArray($param['dos'], 'top')) { html += '置顶/取消'; } } else { $param['type'] == 'read'; if (InArray($param['dos'], 'activetop')) { html += '动态置顶/取消'; } if (InArray($param['dos'], 'top')) { html += '版内置顶/取消'; } if (InArray($param['dos'], 'high')) { html += '设为精华/取消'; } if (InArray($param['dos'], 'locked')) { html += '锁定帖子/取消'; } if (InArray($param['dos'], 'move')) { html += '移动文章'; } }
好男人:
还是不会呢,大佬帮我改下呗
好男人:
明白了。。谢谢
公告
近期本站被人为恶意注册及发布垃圾帖,本站已开启普通用户发帖审核功能,VIP系列用户组不受影响,一但发现发布违法或垃圾帖的用户,该用户账号将会被永久封号,请大家共同维护互联网环境,共创美好互联网未来。
永久免费,购授权享豪礼
扫个红包吧,快乐你我他