using jquery updated version in user edit page
I found a solution: First check the path, and then replace the JavaScript file. 

function mymodule_js_alter(&amp;$js) {
  if (preg_match('/user\/\d*\/edit/', current_path())) {
    $js['sites/all/modules/jquery_update/replace/jquery/1.5/jquery.min.js']['data'] = 'sites/all/modules/jquery_update/replace/jquery/1.7/jquery.min.js';
  }
}