A difference inline, block and inline-block of
inline:
1, the plurality of elements are present in a row,
2, width and height attributes do not take effect, relies entirely on the content distraction.
3, can be effective in the padding and margin left and right directions, but not in the top and bottom.
block:
1, a separate line, the width is not provided, the default will fill the width of the parent element
2, the width and height can be provided
3, margin, padding are valid
inline-block:
1, with some of the features of line and block, does not account for the block-level element row alone
Two, localstorage, sessionStorage, the difference between the cookie
Are stored in the browser, and homologous: common
difference:
1, cookie data always carries (even if not require) that cookie passed back and forth between the browser and the server in homologous http request, and while sessionStorage localStorage does not automatically send data to the server, saved only locally. as well as the concept of cookie data path (path), you can limit the cookie belongs to a path under
2, storage size limit is different, cookie data can not exceed 4K, and because every http request will carry the cookie, so the cookie is only suitable for preservation small data, such as a session identifier. Although sessionStorage and localStorage storage size is also limited, but is much larger than the cookie, you can reach 5M or greater
3, different data is valid, sessionStorage: only valid until the current browser window is closed; localStorage: always active window or browser Close has been saved, so as a persistent data; cookie: cookie is only valid until the expiration time set, even if the window is closed or the browser is closed
4, different scopes, sessionStorage not different browser window to share, even with a page; localstorage in all homologous windows are shared; cookie is homologous in all windows are shared
Third, how to implement block-level scope virgin
Fourth, how to achieve multi-page communication
Fifth, how to write a squared layout
Principle six, vue of the hash and historay
Seven, vueX meaning of getters