51 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			HTML
		
	
	
	
		
		
			
		
	
	
			51 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			HTML
		
	
	
	
| 
								 | 
							
								<!DOCTYPE html>
							 | 
						||
| 
								 | 
							
								<html lang="zh">
							 | 
						||
| 
								 | 
							
								<head>
							 | 
						||
| 
								 | 
							
								  <meta charset="UTF-8">
							 | 
						||
| 
								 | 
							
								  <title>小程序富文本组件</title>
							 | 
						||
| 
								 | 
							
								  <link rel="icon" href="assets/logo/logo.ico" type="image/x-icon">
							 | 
						||
| 
								 | 
							
								  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
							 | 
						||
| 
								 | 
							
								  <meta name="description" content="小程序富文本组件">
							 | 
						||
| 
								 | 
							
								  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
							 | 
						||
| 
								 | 
							
								  <link rel="stylesheet" href="lib/vue.css">
							 | 
						||
| 
								 | 
							
								  <script>
							 | 
						||
| 
								 | 
							
								    var _hmt = _hmt || [];
							 | 
						||
| 
								 | 
							
								    (function () {
							 | 
						||
| 
								 | 
							
								      var hm = document.createElement("script")
							 | 
						||
| 
								 | 
							
								      hm.src = "https://hm.baidu.com/hm.js?69554d980eb5eb786919e3c3ad37b2ce"
							 | 
						||
| 
								 | 
							
								      var s = document.getElementsByTagName("script")[0]
							 | 
						||
| 
								 | 
							
								      s.parentNode.insertBefore(hm, s)
							 | 
						||
| 
								 | 
							
								    })()
							 | 
						||
| 
								 | 
							
								  </script>
							 | 
						||
| 
								 | 
							
								</head>
							 | 
						||
| 
								 | 
							
								<body>
							 | 
						||
| 
								 | 
							
								  <div id="app"></div>
							 | 
						||
| 
								 | 
							
								  <script>
							 | 
						||
| 
								 | 
							
								    window.$docsify = {
							 | 
						||
| 
								 | 
							
								      name: 'mp-html',
							 | 
						||
| 
								 | 
							
								      repo: 'https://github.com/jin-yufeng/mp-html',
							 | 
						||
| 
								 | 
							
								      coverpage: true,
							 | 
						||
| 
								 | 
							
								      loadSidebar: true,
							 | 
						||
| 
								 | 
							
								      subMaxLevel: 3,
							 | 
						||
| 
								 | 
							
								      auto2top: true,
							 | 
						||
| 
								 | 
							
								      search: {
							 | 
						||
| 
								 | 
							
								        placeholder: '搜索',
							 | 
						||
| 
								 | 
							
								        noData: '找不到结果'
							 | 
						||
| 
								 | 
							
								      }
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								    // 渲染测试内容
							 | 
						||
| 
								 | 
							
								    function render () {
							 | 
						||
| 
								 | 
							
								      document.getElementById("show").srcdoc='<meta name="viewport" content="width=device-width"><style>img{max-width:100%}</style>'+document.getElementById("input").value.replace(/<script[\s\S]+?<\/script>/g, '')
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								    // 清空测试内容
							 | 
						||
| 
								 | 
							
								    function reset () {
							 | 
						||
| 
								 | 
							
								      document.getElementById("input").value = ''
							 | 
						||
| 
								 | 
							
								      document.getElementById("show").srcdoc = ''
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								  </script>
							 | 
						||
| 
								 | 
							
								  <script src="lib/docsify.min.js"></script>
							 | 
						||
| 
								 | 
							
								  <script src="lib/search.min.js"></script>
							 | 
						||
| 
								 | 
							
								  <script src="lib/prism-bash.min.js"></script>
							 | 
						||
| 
								 | 
							
								</body>
							 | 
						||
| 
								 | 
							
								</html>
							 |