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……

2015-08-04

學術報告格式以CSS的方顯示

算是因為最近用MarkDown寫文件,要轉成HTML時候搜尋到CSS counter-reset Property(W3Schools),於是就想統整一下某些學術報告的常用格式如何以CSS方式展現

2015-07-21

AJAX傳輸formaction

最近寫專案的關係,去碰html5的 submit button 的 form action

用純CSS3建立menu

因為無聊去看bootstrap,突然好奇他們是怎麼寫menu list的,因為我以前也嘗試過自己寫,但問題是子選單的位置總是調不好。
結果看了以後,發現menu寫法還真簡單……