title: How to trigger the window resize event in JavaScript?
body: <p>I have registered a trigger on window resize. I want to know how I can trigger the event to be called. For example, when hide a div, I want my trigger function to be called.</p>
  
  <p>I found <code>window.resizeTo()</code> can trigger the function, but is there any other solution?</p>