>
        document.getElementById('rank').innerHTML = tpl(document.getElementById('tpl1').innerHTML,json);
    </script>

    <div class="weui-cells" id="content"></div>
    <script>
        var data={
            title:"登鹳雀楼",
            list:[
                "白日依山尽",
                "黄河入海流",
                "欲群千里目",
                "更上一层楼"
            ]
        }
        var html='<div class="weui-cells__title">tpl用法2字符串赋值方法的模板</div