
1 hpfs0 2015-03-06 17:04:58 +08:00 这不是很easy吗?学过Javascript的应该都会把 |
3 NewYear 2015-03-06 18:11:58 +08:00 <?php $php是最好的语言=1; if ( $php是最好的语言==1 && isset($_GET["site"]) && $_GET["site"] == "v2ex" ) header("Location: https://www.v2ex.com"); ?> <form> <input name="site"> <input type="submit"> </form> |
4 kechx 2015-03-06 18:27:46 +08:00 <script> var keyword = document.getElementById('keyword').value.trim(); window.location.assign("http://www."+keyword+".com"); </script> |
5 cuthead OP @NewYear @RihcardLu 最好写成带按钮的,用Javascript。不光有v2ex网站,还希望有engadget之类的网站,还希望支持中文,比如输入瘾科技能打开cn.engadget.com <!DOCTYPE html> <html> <body> <button Onclick="myFunction()">button</button> <script> function myFunction() { window.open("http://www.v2ex.com", "_self"); } </script> </body> </html> |
6 b821025551b 2015-03-09 09:36:53 +08:00 这种问题去百度知道就行了。。。 |