Authors can include data for inline client-side scripts or server-side site-wide scripts to process using the data-*="" attributes. These are guaranteed to never be touched by browsers, and allow scripts to include data on HTML elements that scripts can then look for and process.
From <https://html.spec.whatwg.org/multipage/introduction.html#introduction>
From <https://html.spec.whatwg.org/multipage/introduction.html#introduction>
How2Code
Photo
也就是说下面这些都是等价的
location.protocol = "http"
location.protocol = "http:"
location.protocol = "http:::::::"
没用的小知识
location.protocol = "http"
location.protocol = "http:"
location.protocol = "http:::::::"
没用的小知识
用 Templates 前 : 从现在起,我就是黑魔法师
写 Templates 过程中 : 嗯?应该这样写吗?抽出 C++ Templates 赶紧看一眼
实现完后 : 草,这么扭曲,再写 modern C++ 自杀
现在 : 感觉还是有改进余地的,templates,真香
写 Templates 过程中 : 嗯?应该这样写吗?抽出 C++ Templates 赶紧看一眼
实现完后 : 草,这么扭曲,再写 modern C++ 自杀
现在 : 感觉还是有改进余地的,templates,真香