upload.js
来自「php 开发的内容管理系统」· JavaScript 代码 · 共 24 行
JS
24 行
function licenseSelectorCheck() { var selector = document.getElementById("wpLicense"); if (selector.selectedIndex > 0 && selector.options[selector.selectedIndex].value == "" ) { // Browser is broken, doesn't respect disabled attribute on <option> selector.selectedIndex = 0; }}function licenseSelectorFixup() { // for MSIE/Mac; non-breaking spaces cause the <option> not to render // but, for some reason, setting the text to itself works var selector = document.getElementById("wpLicense"); var ua = navigator.userAgent; var isMacIe = (ua.indexOf("MSIE") != -1) && (ua.indexOf("Mac") != -1); if (isMacIe) { for (var i = 0; i < selector.options.length; i++) { selector.options[i].text = selector.options[i].text; } }}addOnloadHook(licenseSelectorFixup);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?