script type="text/template用的法
例:弹窗内容需要显示指定的html时,可以用 script 标签 type="text/template" 属性
被包含的代码不会显示,当需获取html代码时使用 $('#box').html()获取
<script type="text/template" id="box">
你的html代码
</script>
例:弹窗内容需要显示指定的html时,可以用 script 标签 type="text/template" 属性
被包含的代码不会显示,当需获取html代码时使用 $('#box').html()获取
<script type="text/template" id="box">
你的html代码
</script>
评论
评论列表
暂无评论,快来抢沙发吧~