Home > front end >  Spent $. Of noConflict (true) after bootstraptable export failure
Spent $. Of noConflict (true) after bootstraptable export failure

Time:12-02

In order to prevent the jquery version of the page into conflict, var $jQuery_edit=$. Of noConflict (true); Then use the $jQuery_edit instead of the original $, all the other function is normal, but the table export failure!



Below is the export function of js:
//export
The function tableExport () {

$jQuery_edit (' # tb_user_edit). TableExport (
{
Type: 'excel',//export excel
The escape: 'false',
IgnoreColumn: [0],//ignore a column of the index
FileName: 'sow archives',//file name set
WorksheetName: 'sheet1,//form the workspace name
TableName: 'sow archives',
Excelstyles: [' background - color ', 'color', 'the font, size,' the font - weight]
}
)
}
$jQuery_edit $(' # btnExport) bind (' click ', function () {


TableExport ();
})

Don't know is what reason, consult everybody warrior!

CodePudding user response:

Back to top!!!!!!
  • Related