zoukankan      html  css  js  c++  java
  • jq页面加载分割截图

    <script>
    $(document).ready(function() {

    if (!Array.prototype.forEach) {  
        Array.prototype.forEach = function(fun /*, thisp*/){  
            var len = this.length;  
            if (typeof fun != "function")  
                throw new TypeError();  
            var thisp = arguments[1];  
            for (var i = 0; i < len; i++){  
                if (i in this)  
                    fun.call(thisp, this[i], i, this);  
            }  
        };  
    }

    var jt=$("#jt").val();
    var arrjt=jt.split(/,|,/);
    var arrjtA=[];
    var jtemp="";
    for(i=0;i<arrjt.length;i++){
    arrjtA.push(arrjt[i]);
    }
    arrjtA.forEach(function(e){
    jtemp+="<div class='swiper-slide'><img src='images/"+e+"'/></div>";
    });
    $("#screenshot").html(jtemp);
    var tz=$("#tz").val();
    var arrtz=tz.split(/;|;/);
    var arrtzA=[];
    var temp="";
    for(j=0;j<arrtz.length;j++){
    arrtzA.push(arrtz[j]);
    }
    arrtzA.forEach(function(e){
    temp+="<li class='xinban'>▪"+e+"</li>";
    });
    $("#feature").html(temp);
    });
    </script>

    <input type="hidden" id="jt" name="jt" value="jietu.png,jietu.png,jietu.png,jietu.png,jietu.png,jietu.png"/>
    <div class="swiper-wrapper" id="screenshot">

    </div>

    <input type="hidden" id="tz" name="tz" value="版本:2.4.0.0范德萨发卡了就发了多少;更新:2015-06-19减肥可怜的萨福克大路上风景啊;语言:中文放大沙发上的话就发黑色的就(简体);版本:2.4.0北方舰队舒服哈哈付款拉风.0;9发撒好的发多少来房间打扫房间卡水电开发教师的教案发卡洛斯;语言:中文(简体)发给多少个io我就覅束带结发卡机;版本:2.4.0.0范德萨发卡了就发了多少;更新:2015-06-19减肥可怜的萨福克大路上风景啊"/>
    <ul id="feature">

    </ul>

    部分来自:http://segmentfault.com/a/1190000002486377

  • 相关阅读:
    54:代码审计-TP5框架审计写法分析及代码追踪
    53:代码审计-TP5框架及无框架变量覆盖反序列化
    52:代码审计-PHP项目类RCE及文件包含下载删除
    51:代码审计-PHP框架MVC类上传断点调试挖掘
    支配树学习笔记
    模拟费用流学习笔记
    python之元类、双下方法( 双下方法也叫魔术方法、 内置方法)
    java 注解
    java 反射
    java synchronized
  • 原文地址:https://www.cnblogs.com/lanliying/p/4597330.html
Copyright © 2011-2022 走看看