• 自作收藏chosen和kindeditor


    chosen(下拉搜索插件)和kindeditor(输入文字域变成输入窗口)插件的提示显示,插件加载靠后,依靠延时来实现加载后于插件加载

    <script>
    $(document).ready(function(){
        var selectshow = $('#module').next('div').find('li.search-field');
        var selectts = '<li  style="color:rgba(150,150,150,02);line-height:25px">'+$('#module').attr('placeholder')+'</li>'
        var select0 = selectshow.after(selectts);


        
    function textarea0(){
        var ts = $('#functionDesc').attr('placeholder');
        var tshtml = '<span style="color:rgba(150,150,150,02)">'+ts+'</span>';
        var contentts = $('#functionDesc').parent().children('div:nth-child(1)').children('div:nth-child(2)').find('iframe').contents().find("body");
        contentts.html(tshtml);
        contentts.focus(function(){if(contentts.html()==tshtml) contentts.html('')});
        contentts.blur(function(){ if(contentts.html()=='')contentts.html(tshtml);});
    }
    setTimeout(textarea0,1000);
    });
    </script>

  • 相关阅读:
    集群架构搭建
    THUWC2019 游记
    【集训队互测2015】未来程序·改
    [NOIP2014普及组T1]珠心算测验
    [CF912D]Fishes
    [POJ2409]Let it Bead
    golang 统计系统测试覆盖率
    tcpdump常用方法
    数学闯关引发的思考
    linux lsof常用方法
  • 原文地址:https://www.cnblogs.com/xdingc/p/7510933.html
Copyright © 2020-2023  润新知