1. The project needs to implement a requirement, the first click to allow the Popup Dialog object box, the second time not allowed, unless the page is refreshed again
2. Define a tag attribute in the Click event of JS, which is equivalent to setting a global variable
var auclot= ' <a href= ' # ' onclick= ' Top.opendialogflag=true;self.parent.addtab (\ ' +title+ ' \ ', \ ' +url+ ' \ ', \ ') +icon+ ' \ ') "> Pat </a>";
3. Where the variable is defined
on the index.html page after login, set the global variable/*<! [Cdata[*/var baseUrl=/*[[@{/}]]*/; var currentuserrole=/*[[${currentuserrole}]*/; var hiddenset=/*[[${hiddenset}]*/; var viewset=/*[[${viewset}]*/var projectflag=/*[[${projectflag}]*/var opendialogflag=false;/*]]>*/
4. When performing a click, define this variable as true
true var auclot= ' <a href= ' # "onclick=" Top.opendialogflag=true;self.parent.addtab (\ ' +title+ ') \ ', \ ' +url+ ' \ ', \ ' +icon+ ' \ ') ' > on </a> ';
5. Perform the popup, and when the action is opened, make a judgment of this property
if null && Goodsid! = "&&false;.. }
One click implementation of jquery