And Coco2dx learned that John resing the great god of extend, should be used in the latest jquery, then continue to inherit the jquery object
Implementation of Security JS plug-in System
var excludeiframe=/iframe/;
var jquerysafe=jquery.extend (jquery,{
This. Safeinit=function () {
}
This=function (a) {
if (typeof a ==fragment) {//does not actually recognize the fragment object, requires other logic
if (Excludeiframe.test (a)) {return alert ("You cannot use frame, this is unsafe")}
Return This._super (a);
}
if (typeof a== function) {
This is going to wait for cross-domain forwarding to write, triggering Ajax to complete the event call this to the App class.
}
Return This._super ("#yourArea"). Find (a);
}
This.parent=function (a) {
This._super (a);
}
This.appent=function (a) {
This._super (a);
}
This.fn.appentto=function (a) {
This._super (a);
}
});
function () {
Window=null;
Document=null;
Jquery=null;
... All the window members
Function ($) {
Plug-in Area
} (Jquerysafe)
}
Extended Unique Zone Request
Jquery.extend ({
Popup:function () {
}
});
The following Java
Simple NiO Heartbeat Transfer
The heartbeat mechanism avoids long-connection attacks and can be easily implemented with Java NIO
[13 Migration]jquerysafe