刚才在微博上看到一招,把浏览器变成笔记本。
先来个原文的链接吧。https://coderwall.com/p/lhsrcq
原文如下:
Introduction介绍
Sometimes I just need to type garbage(垃圾). Just to clear out my mind. Using editors to type such gibberish(快而不清的话) annoys (使烦恼)me because it clutters(弄乱) my project workspace (I'm picky(挑剔的), I know).
So I do this. Since I live in the browser, I just open a new tab and type in the url tab.
data:text/html, <html contenteditable>
Voila, browser notepad.
Why it works?
You don't need to remember it. It's not rocket science(科学). We are using the Data URI's format and telling the browser to render(给予) an html (try "javascript:alert('Bazinga');"). The content of said html is a simple html line with the html5 attribute(属性) contenteditable. This works only on modern browsers that understand this attribute. Click and type!
- EOF -
本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处,尊重他人劳动。
转载请注明:文章转载自 Binkery 技术博客 [https://binkery.com]
本文标题: 浏览器变成记事本
本文地址: https://binkery.com/archives/189.html