An.T

Results 5 comments of An.T

不知道怎樣實現, 已添加了select的聯動, 但不知道要怎樣更改url 已測試過更改select裡面template的data-url, 沒效果 ` var templateHtml = $($('template')[0]).html(); var template = $(templateHtml); var content = template.closest('.dialog-table').find("div"); var link = $(content[1]).attr('data-url'); $(content[1]).attr('data-url',link+'&co='+this.value); `

Submitted也是,有點麻煩,可以判斷有沒有request再作處理: `$form->hidden('status');` ``` if (!isset(request()->status)) { $form->saving(function (Form $form) { $re = '/http.*?(\/markdown)/m'; $subst = 'THECDNURL$1'; $form->content = preg_replace($re, $subst, $form->content); }); } ```