Web: October 2017 Archives

Web to PDF/Image

user-pic
Vote 0 Votes

wkhtmltopdf is a command line web to PDF/Image tool.
wkhtmltopdf https://google.com output.pdf
wkhtmltoimage https://google.com output.png
Linux 版本中文有問題, Windows 版本中文正常, 輸出效果還不錯

HTML5 data-* attribute

user-pic
Vote 0 Votes

HTML5 data- 開頭是特殊屬性, data- 之後只能用小寫, 通常用來傳遞變數

例:
<button data-id='1234'>Click</botton>

jQuery 可以用 $(this).data("id")); 來取得 1234

fiddler HTTP/HTTPS Debugging Proxy using MITM
Chrome、IE、Opera test OK
Firefox need set proxy to 127.0.0.1:8888 manually

About this Archive

This page is an archive of entries in the Web category from October 2017.

Web: April 2016 is the previous archive.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives