Home > front end >  For help on pure front-end import excel export function again after processing data problem
For help on pure front-end import excel export function again after processing data problem

Time:04-15

Projects need pure front make an excel spreadsheet contrast function, is the two excel spreadsheet to the page, the two form to the page to edit, and also can compare the two forms, such as the repeated abnormal in the column show that repeated, id number, and gender wrong to gender discrepancies, such as the contrast to create a new form, new form to be able to export to excel, I made a simple demo XLSX this plug-in can generate new forms and repeated comparison of the characters are derived, but now do not know how to solve some problem, such as the form of gender changes must limit are two options to choose between men and women, id number when a change must be digital, these restrictions do not know how to show in the table on page the above two form upload up, most is generated by the new form below, click save to generate new watch export
Please help have a look, if this is a plug-in or do bosses to check it! New appreciated!!!!!!!!!!!!!!

CodePudding user response:

On the web page changes such as id number, is to use the input to it, if it is, then the qualified type type="number", it would be better to an input event, when the user input validation,
If this way is:
1, add contenteditable attribute to editable text, & lt; P="true" contenteditable & gt; Here you can edit & lt;/p>

Contenteditable: "inherit"; (the default)
Contenteditable: "plaintext - only"; Plain text (input)
Contenteditable: "true";
Contenteditable: "false";
Contenteditable: "caret"; (symbols)
Contenteditable: "events"; (don't know what to do)

2, the use of CSS user - the modify
User - the modify: read - only;
User - the modify: read - write;
User - the modify: write - only; (no)
User - the modify: read - write - plaintext - only; Plain text (input, temporarily only Google support:
I haven't studied

CodePudding user response:

It is recommended to use the input TAB to modify,

 
//such as the gender to gender input box class name sex
$(" body ") on (' input ', 'input. Sex', function () {
If ([' male 'and' female '] indexOf (value) this.==1) {
this.valuehttps://bbs.csdn.net/topics/='
Alert (' can only input, male/female);
}
})

CodePudding user response:

reference 1st floor weixin_50944805 response:
on the web page changes such as id number, is to use the input to it, if it is, then the qualified type type="number", it would be better to an input event, when the user input validation,
If this way is:
1, add contenteditable attribute to editable text, & lt; P="true" contenteditable & gt; Here you can edit & lt;/p>

Contenteditable: "inherit"; (the default)
Contenteditable: "plaintext - only"; Plain text (input)
Contenteditable: "true";
Contenteditable: "false";
Contenteditable: "caret"; (symbols)
Contenteditable: "events"; (don't know what to do)

2, the use of CSS user - the modify
User - the modify: read - only;
User - the modify: read - write;
User - the modify: write - only; (no)
User - the modify: read - write - plaintext - only; Plain text (input, temporarily only Google support:
I haven't studied the


Not input web site is one by one & lt; Td>

CodePudding user response:

refer to the second floor weixin_50944805 response:
it is recommended to use the input TAB to modify,

 
//such as the gender to gender input box class name sex
$(" body ") on (' input ', 'input. Sex', function () {
If ([' male 'and' female '] indexOf (value) this.==1) {
this.valuehttps://bbs.csdn.net/topics/='
Alert (' can only input, male/female);
}
})



Not with input is essentially a a td tag
  • Related