Failed to execute ‘getComputedStyle’ on ‘Window’: parameter 1 is not of type ‘Element’.

using jquery. Datetimepicker. Full. Min. Js error

error operation procedure:

operation time control, switch to other pages, open the console, pull the console zoom size, this time will find that the error

The

error was caused because, while dragging the console, the root element of the control could not be retrieved and the control could not be located

view error message

window.getComputedStyle(e), prompt e is not an element, print null

in the source code to add the following code, solve the problem

if(!e) { 

    return false;

} 


Read More: