🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
【当前页select option value跳转页面】 ~~~ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script> </head> <body> <select onchange="window.location=this.value;"> <option value="#" id="index" selected>index</option> <option value="/index">index</option> <option value="/about.html">about</option> <option value="/contact.html">contact</option> </select> <script> $("#index").hide(); </script> </body> </html> ~~~