5.Similarily, edit link is bind with `ng-click="editEmployee( employee )"`. Inside `editEmployee()` function, we simply populate the form text fields with existing employee data by below mapping.
The jqXHR objects returned by $.ajax() implement the Promise interface. The object has all the properties, methods, and behavior of a [**Promise**](https://api.jquery.com/deferred.promise/).
在上面的示例中,ajax 调用将从 URL `html-response.html`加载 HTML 响应,然后对`id=someDiv`执行响应的 jQuery ID [选择器](//howtodoinjava.com/scripting/jquery/jquery-selectors/),然后将结果 HTML 插入`loadTarget`的 innerHTML 中。
在上面的示例中,ajax 调用将从 URL `html-response.html`加载 HTML 响应,然后对`id=someDiv`执行响应的 jQuery ID [选择器](//howtodoinjava.com/scripting/jquery/jquery-selectors/),然后将结果 HTML 插入`loadTarget`的`innerHTML`中。
If the loaded HTML contains any JavaScript it will get executed when the HTML is inserted into the target HTML element. However, if you load a fragment (URL + jQuery selector) then any JavaScript found in the loaded file is remove before the HTML is inserted.
如果加载的 HTML 包含任何 JavaScript,则将 HTML 插入目标 HTML 元素时将执行该 JavaScript。 但是,如果加载片段(URL + jQuery 选择器),则在插入 HTML 之前,将删除在加载的文件中找到的所有 JavaScript。
jQuery 深度克隆意味着独立更改原始对象或克隆对象不会对其他对象产生影响。 换句话说,两个对象(原始对象和克隆对象)都彼此完全独立。 您可以在对象克隆 的 [**指南中阅读有关克隆的更多信息。**](//howtodoinjava.com/java/cloning/a-guide-to-object-cloning-in-java/"A guide to object cloning in java")
jQuery 深度克隆意味着独立更改原始对象或克隆对象不会对其他对象产生影响。 换句话说,两个对象(原始对象和克隆对象)都彼此完全独立。 您可以在对象克隆的[**指南**](//howtodoinjava.com/java/cloning/a-guide-to-object-cloning-in-java/"A guide to object cloning in java")中阅读有关克隆的更多信息。