stackoverflow是否使用jQuery?

时间:2011-12-10 10:34:19

标签: jquery

我是一名Web开发人员,对stackoverflow UI印象非常深刻。单击按钮时有很多过渡,淡入和淡出。是否使用jQuery?你能给我一个示例jQuery代码吗?

2 个答案:

答案 0 :(得分:2)

此页面的源代码:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>    
    <title>javascript - Is stackoverflow using jQuery? - Stack Overflow</title>
    <link rel="shortcut icon" href="http://cdn.sstatic.net/stackoverflow/img/favicon.ico">
    <link rel="apple-touch-icon" href="http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png">
    <link rel="search" type="application/opensearchdescription+xml" title="Stack Overflow" href="/opensearch.xml">
    <script type="text/javascript" 
        src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>

看到最后一行?至于示例代码,look here

答案 1 :(得分:1)

每个体面的浏览器都有查看源代码的方法,您可以在那里查看链接的脚本。 这是头标有什么,是的,它确实使用它!!

 <title>Stack Overflow</title>
    <link rel="shortcut icon" href="http://cdn.sstatic.net/stackoverflow/img/favicon.ico">
    <link rel="apple-touch-icon" href="http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png">
    <link rel="search" type="application/opensearchdescription+xml" title="Stack Overflow" href="/opensearch.xml">
    **<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>**

    <script type="text/javascript" src="http://cdn.sstatic.net/js/stub.js?v=449ed5042126"></script>
    <link rel="stylesheet" type="text/css" href="http://cdn.sstatic.net/stackoverflow/all.css?v=c1c782cc77e7">

    <link rel="alternate" type="application/atom+xml" title="Feed of recent questions" href="/feeds">


    <script type="text/javascript">