SHARE
TWEET

Untitled

a guest Aug 19th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. AAColumnsDesc="{"val1":"坑位1","val2":"坑位2","val3":"坑位3","val4":"坑位4"}"
  2. AAColumns="["val1","val2","val3","val4"]"
  3. if ($("#AAColumnsDesc").val())
  4.                 {
  5.                     var colStr = $("#AAColumns").val();
  6.                     var colDescStr = $("#AAColumnsDesc").val();
  7.                     var colObj = JSON.parse(colStr);
  8.                     if (colObj) {
  9.                         $(colObj).each(function (i) {
  10.                             maxCount = maxCount + 1;
  11.                             var descObject = JSON.parse(colDescStr);
  12.                             var currVal  = eval('descObject.' + colObj[i]);
  13.                             var valueStr = colObj[i];
  14.                             var templeteDiv = "<div class='userDivInput form-group form-inline'><input type='text' value='"+currVal+"' id='"+valueStr+"' class='userdefineTxt' style='border-radius: 3px;padding: 7px;height: 30px;font-size: 13px;' /></div>";
  15.                             $("#userDefineDiv").append(templeteDiv);
  16.                         });
  17.                     }
  18.                 }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top