cxselect.js 509 B

1234567891011121314
  1. define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
  2. var Controller = {
  3. index: function () {
  4. $("#cxselect-example .col-xs-12").each(function () {
  5. $("textarea", this).val($(this).prev().prev().html().replace(/[ ]{2}/g, ''));
  6. });
  7. //这里需要手动为Form绑定上元素事件
  8. Form.api.bindevent($("form#cxselectform"));
  9. }
  10. };
  11. return Controller;
  12. });