在我下面列出的代码中,jQuery 是 1.9.1 版本,jQuery1 是 1.2.6 版本,我将如何集成它们以使两者相互兼容?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Auto Complete Input box</title>
<link rel="stylesheet" type="text/css" href="jquery.autocomplete.css" />
<script type="text/javascript" src="js/jquery1.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.autocomplete.js"></script>
<script>
$(document).ready(function() {
$("#tag").autocomplete("autoCompleteMain.php", {
selectFirst: true
});
});
</script>
</head>
<body>
<form>
<label>Tag:</label>
<input name="tag" type="text" id="tag" size="20" />
</form>
</body>
</html>