首页 > 学院 > 手机教程 > 正文

不越狱Safari查看网页源代码方法

2024-06-12 09:29:49
字体:
来源:转载
供稿:网友

  NO.1 随便添加一个safari 书签 (用于一会改为查看源码功能书签)

  NO.2 进入书签 点击编辑 后选择第一步好的书签。

  NO.3 更改书签 标题 随意(我改成查看源代码简单明了- -)

  下面网址改成:

<FONT size=3>javascript:(function(){var d=window.open("about:blank"),a=d.document;a.write("<!DOCTYPE html><html><head><title>Loading Source</title></head><body></body></html>");a.close();var b=a.body.appendChild(a.createElement("form"));b.setAttribute("method","post");b.setAttribute("action","http://ole.michelsen.dk/viewsource/?uri="+location.href);var c=b.appendChild(a.createElement("input"));c.setAttribute("type","hidden");c.setAttribute("name","DOM");c.setAttribute("value",encodeURIComponent(document.documentElement.innerHTML));b.submit()})()</FONT>

  OK 大功告成= =

  使用方法 :当你想看一个网页的源代码时先打开网页然后去书签里点击你更改的查看源代码书签即可。

:更多精彩教程请关注CUOxin.COM手机教程栏目,CUOxin.COM手机数码群:296605639欢迎你的加入


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选