smarty + php + jquery
<?php if(isset($sc)){ ?>
<?php foreach ($sc as $key => $value) { ?>
<?php $i = $value[‘adept_id‘]; ?>
$("#servicegoodat{$i}").attr("checked","checked");
<?php } ?>
<?php } ?>
时间: 2024-10-11 11:01:25