Data Link between two objects in JQuery
问题 I just want to know how can i link two variables in jquery using .link() http://api.jquery.com/link/. I have two variable var name; and var firstname; , i should link "name" to "firstname". If i made any changes to "name" means it should reflect in "firstname" and vise versa. 回答1: I don't have much experience with the link() plugin for jQuery, but it seems that that plugin is designed more for linking user interface elements to variables in Javascript, not for linking two variables together