正文 1961字数 80,193阅读

<p>颜色:<input type="text" value="<?php echo $vvsss[0];?>" name="yansess[]" />&nbsp;尺寸:<input type="text" value="<?php echo $vvsss[1];?>" name="chicun[]" />&nbsp;价格:<input type="text" value="<?php echo $vvsss[2];?>" name="jiage[]"/>&nbsp;库存:<input type="text" value="<?php echo $vvsss[3];?>" name="kucun[]"/>&nbsp;<a href="javascript:;" onclick="dsfdsddll(this);">删除</a></p>
Run code
Cut to clipboard


    <script> function dsfdsddll(e){ $(e).parent().remove(); } function addButtonsfsd(){ var button="<p>颜色:<input type='text' value='' name='yansess[]' />&nbsp;尺寸:<input type='text' value='' name='chicun[]' />&nbsp;价格:<input type='text' value='' name='jiage[]'/>&nbsp;库存:<input type='text' value='' name='kucun[]'/>&nbsp;<a href='javascript:;' onclick='dsfdsddll(this);'>删除</a></p>"; $("#divssss").append(button); } </script>
    Run code
    Cut to clipboard


      对象转换成数组
      <?php $nesssssee=object_array($form); $nesssssee=$nesssssee['data']['kkcc']; $nesssssee=explode('moweilin',$nesssssee); function object_array($array) { if(is_object($array)) { $array = (array)$array; } if(is_array($array)) { foreach($array as $key=>$value) { $array[$key] = object_array($value); } } return $array; } ?>
      Run code
      Cut to clipboard

        获取后台全局配置参数值
        $_SESSION['WIDtotal_fee']=$dd_spp_jg; $newwwwyffff=$this->Config; $wwyyyffff=$this->Config; $wwyyyffff=$wwyyyffff['buyyf']; $newwwwyffff=$newwwwyffff['buyon']; if($_SESSION['WIDtotal_fee']<$newwwwyffff) $_SESSION['WIDtotal_fee']=$_SESSION['WIDtotal_fee']+$wwyyyffff;
        Run code
        Cut to clipboard