gpt4 book ai didi

jquery 谷歌链接

转载 作者:行者123 更新时间:2023-12-01 07:01:51 25 4
gpt4 key购买 nike

有人知道这个谷歌代码是如何工作的吗?

我得到以下信息:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>My Google AJAX Search API Application</title>
<script src="http://www.google.com/jsapi?key=blahblahblah" type="text/javascript"></script>
<script language="Javascript" type="text/javascript">
google.load("jquery", "1");
google.load("jqueryui", "1");
</script>
</head>
<body>
<div class="ui-state-highlight">
hello world
</div>
</body>
</html>

但是<div></div>应该显示带有 hello world 的错误框。但它没有显示红色背景,因此用户界面无法正常工作...

我在这里做错了什么?

最佳答案

如果您想要样式,还需要样式表,如下所示:

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/base/jquery-ui.css"> 

这是基本(灰色)主题,there are others (一定要更新版本号!)

除非您需要 google.load 来做其他事情,否则您可以直接包含脚本,值得一看 this question了解使用 google.load() 的优点/缺点。

直接加载它们看起来像这样:

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/base/jquery-ui.css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"></script>

关于jquery 谷歌链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2892083/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com