{volist name="dianpu" id="dianpu"} <input style="border: none;" readonly name="guanzhu" data_value="{$dianpu.is_guanzhu}" data_zhi="{$dianpu.shopId}" value="{$dianpu.shopId}{$dianpu.is_guanzhu}"/> {/volist}
$(‘input[name="guanzhu"]‘).click(function () { var is_guanzhu = $(this).attr(‘data_value‘); var shopId = $(this).attr(‘data_zhi‘); console,log(is_guanzhu) ; console,log(shopId) ;
})
原文地址:https://www.cnblogs.com/shark1100913/p/9159461.html
时间: 2024-10-08 19:43:57