title: Run javascript function when a page loaded in QML
body: <p>I want to run js function like this</p>
  
  <pre><code>function setPersonalInfoValue(){
          console.debug("setPersonalInfoValue()");
      }
  </code></pre>
  
  <p>when the page loaded in QML.</p>
  
  <p>I tried this:</p>
  
  <pre><code>Rectangle {
      id: page2
      width: 100
      height: 62
  
      function setPersonalInfoValue(){
          console.debug("setPersonalInfoValue()");
      }
  }
  </code></pre>
  
  <p>I want to run setPersonalInfoValue() function when I switch between page 1 to page 2.
  How can I do this?</p>