网页错误强迫症请进
发表于 : 2019年 6月 20日 13:01
代码: 全选
function applyUpdate(update) {
if (update != null) { //由于为验证 数据是否为空,直接调用js熟悉 console抛异常
if (update.available) {
$('<div class="update-check message error"><p>'
+ '<?php _e('您当前使用的版本是 %s'); ?>'.replace('%s', update.current) + '<br />'
+ '<strong><a href="' + update.link + '" target="_blank">'
+ '<?php _e('官方最新版本是 %s'); ?>'.replace('%s', update.latest) + '</a></strong></p></div>')
.insertAfter('.typecho-page-title').effect('highlight');
}
}
}
代码: 全选
/admin/index.php
修改一处 js验证导致的 报错