html template & script type="text/html"
html template & script type="text/html"
https://www.sololearn.com/Play/HTML/
MIME type
Multipurpose Internet Mail Extensions
A
media type
(also known as aMultipurpose Internet Mail Extensions
orMIME
type) is a standard that indicates the nature and format of a document, file, or assortment of bytes.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#JavaScript_types
https://www.iana.org/assignments/media-types/media-types.xhtml
Media Types
http://www.iana.org/assignments/media-types/media-types.xhtml
https://www.w3schools.com/tags/att_script_type.asp
<script type="media_type">
demo
https://codepen.io/xgqfrms/pen/RwWvoXx?editors=1010
<script type="text/html" id="module-itemTemplate">
<!-- ko if:allowShortcut() && state().visualState() == app.models.ProgressState.Disabled -->
<div class="shortcutContent">
<button class="shortcut materialResponse material" data-bind="text: $root.texts.shortcutButton, click: $parent.jumpAhead">button</button>
</div>
<!-- /ko -->
<div data-bind="attr: { 'class': 'appModule ' + alignmentClass() }">
<div class="content" data-bind="click: $parent.loadModule">
<div data-bind="attr:{ class:'appModuleCircle materialResponse ' + stateClass() }">
<img data-bind="attr: { 'src': iconSource() }" alt="" />
</div>
<span data-bind="text: name"></span>
</div>
</div>
</script>
©xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/12933873.html
未经授权禁止转载,违者必究!