2019-12-02

AJAX send Canvas 建立的圖片

要將Canvas 建立的圖片做其他處理,例如傳AJAX 基本上就是利用 HTML5 新增的 Blob 來處理

2018-06-15

利用 autocomplete attribute 來使用自動儲存的資料

如果有看 Chrome Console 的話,就會注意到當你有表單時,有時會出現如下的警告訊息
[DOM] Input elements should have autocomplete attributes (suggested: "current-password"): (More info: https://goo.gl/9p2vKq)
This page includes a password or credit card input in a non-secure context. A warning has been added to the URL bar. For more information, see https://goo.gl/zmWq3m.

2017-04-13

Article / Section lacks heading

根據 W3C 的規則, HTML5 新增的 <article> 、 <section> 這兩個 tag,裡面必須包含 <h2 ~ 6>

要不是我會去使用 The W3C Markup Validation Service 幾乎不會知道地說

是說, w3school 完全沒有告知這個呢

參考資料:HTML/Usage/Headings/Missing - W3C Wiki

2016-03-18

Golang的 Cookie 操作

在 GoLang 出 1.1 版以前,Go lang 雖然已經有定義 type CookieJar interface 了,但是只有 interface,那時候要使用 cookie 還要自己定義 [1]
當時雖然有人有開源自己寫的 cookie jar,不過在 1.1 出來後也不會用到,現在我要找也找不到了……

2016-03-09

You can't specify target table '資料庫表名' for update in FROM clause

這是最近使用 Hibernate 時遇到的錯誤訊息
查了一下,結果這是 MySQL 特有的問題。說是不能夠在變更資料時 select 同一個 table……