Nachdem Sie ihm gefolgt sind, können Sie seine dynamischen Informationen zeitnah verfolgen
Kurse in der entsprechenden Rubrik:Anmeldeseite
新下载了一个tp框架,然后安装captcha验证码,安装不了,貌似是版本不对,解决方法:在命令后面加个2.*,composer require topthink/think-captcha 2.* 安装适应你tp版本的2系列的版本 最新的适用于TP6
2019-10-150个赞
Kurse in der entsprechenden Rubrik:Anmeldeseite der Xiaomi Mall (JS erzielt Umschalteffekt)
function ChangeReg(divId,divName,Count) { for(var i=0;i<=Count;i++){ document.getElementById(divName+i).style.display='none' } document.getElementById(divName+divId).style.display='block' } 实现登录扫码两页面切换功能
2019-02-090个赞
Kurse in der entsprechenden Rubrik:Produktdetailseite (jQuery-Effekt)
//点击选中其他的颜色 $('.detail_color_left').click(function(){ $('.detail_color_left').attr('class','detail_color_left'); $(this).attr('class','detail_color_left checked'); })
2019-02-100个赞
Kurse in der entsprechenden Rubrik:Wählen Sie alle Artikel im Warenkorb aus
再利用layui布局中,<div class="layui-container"> 无法设置margin边距,需要在外层套一层div方可实现!
2019-02-110个赞
$(function(){ //鼠标移上变色 $('.fa-check-square').mouseover(function(){ if($(this).attr('class')!='fa fa-check-square checked'){ $(this).css('color','#ff6700'); } }) $('.fa-check-square').mouseleave(function(){ $(this).css('color','#fff'); }) //单选中效果 $('.fa-check-square').click(function(){ var cla=$(this).attr('class'); if(cla!='fa fa-check-square checked'){ $(this).attr('class','fa fa-check-square checked'); }else{ $(this).attr('class','fa fa-check-square'); } checkAll(); }) //全选效果 $('#select_all').click(function(){ var cla=$(this).attr('class'); if(cla!='fa fa-check-square checked'){ $('.fa-check-square').attr('class','fa fa-check-square checked'); }else{ $('.fa-check-square').attr('class','fa fa-check-square'); } }) //检查是否全选 function checkAll(){ var allitem=$('.list_item span[class*="fa-check-square"]').length; var checkeditem=$('.list_item span[class$="checked"]').length; if(allitem!=checkeditem){ $('#select_all').attr('class','fa fa-check-square'); }else{ $('#select_all').attr('class','fa fa-check-square checked'); } } //实现加法 $('.add').click(function(){ var nowvalue=$(this).siblings('input').val(); var nowvalue=parseInt(nowvalue); var currentvalue=0; var currentvalue=nowvalue+1; $(this).siblings('input').val(currentvalue); var per_price=$(this).parents('.cal_num').siblings('.per_price').children('p').html(); var per_price=parseFloat(per_price); var total_price=per_price*currentvalue; $(this).parents('.cal_num').siblings('.total_price').children('p').html(total_price+'元'); }) //实现剪法 $('.sub').click(function(){ var nowvalue=$(this).siblings('input').val(); var nowvalue=parseInt(nowvalue); var currentvalue=nowvalue; if(currentvalue>1){ currentvalue=nowvalue-1; }else{ currentvalue=1; } $(this).siblings('input').val(currentvalue); var per_price=$(this).parents('.cal_num').siblings('.per_price').children('p').html(); var per_price=parseFloat(per_price); var total_price=per_price*currentvalue; $(this).parents('.cal_num').siblings('.total_price').children('p').html(total_price+'元'); }) })
2019-02-110个赞