コードフォーマットテスト

2492 ワード

 
layui.use(['form','layer'], function(){ $ = layui.jquery; var form = layui.form(); // form.on('submit(add)', getSubmitForm('{:url("admin/activity/save")}', {})); // $('#unit_price').change(function (){ var unit_num = $(this).val(); var gprice = $('#good_marketprice').val(); console.log(unit_num, gprice); $('#max_buy').val(Math.ceil(gprice/unit_num)); }); }); function setGoods(good_id, goods_name,good_marketprice) { $('#good_id').val(good_id); $('#goods_name').val(goods_name); $('#good_marketprice').val(good_marketprice); }