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 a Multipurpose Internet Mail Extensions or MIME 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/

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>



Flag Counter

©xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!



免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



猜您在找 script标签中type为"text/x-template"或"text/html" 关于 "> js模版使用 js模版使用"> js模版使用 js模版使用"> js模版使用 js模版使用"> js模版使用 是干什么的,为什么要把html写在js中? 这是什么编程语言风格,都能这样用吗?">