第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

請(qǐng)求的時(shí)候報(bào)錯(cuò)了,怎么回事呢?求解

https://img1.sycdn.imooc.com//5b99dbe20001922319190962.jpg

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<!--瀏覽器的文檔模式是以最新版本的IE文檔模式來渲染的,防止IE瀏覽器進(jìn)入怪異文檔模式,讓它按照正常文檔模式渲染頁(yè)面-->

<meta http-equiv="X-UA-Compatible" content="IE=edge"/>

<title></title>

<style type="text/css">

*{

margin: 0;

padding: 0;

}

body{

background: #333;

}

.bg-box{

width: 1366px;

height: 768px;

background-image: url(images/river.jpg);

background-repeat: no-repeat;

margin: 0 auto;

position: relative;

}

.logo{

background-image: url(images/logo.png);

width: 107px;

height: 53px;

float: left;

margin: -4px 18px 0 0;

}

form{

float: left;

background: #fff;

padding: 5px;

}

.search-text{

border: none;

float: left;

height: 28px;

line-height: 28px;

outline: none;

width: 350px;

}

.search-btn{

border: none;

background-image: url(images/search-button.png);

width: 29px;

height: 29px;

float: left;

cursor: pointer;

}

.search-box{

position: absolute;

top: 200px;

left: 300px;

}

.suggest{

width: 388px;

background: #fff;

border: 1px solid #999;

position: absolute;

}

.suggest ul{

list-style: none;

}

.suggest ul li{

padding: 3px;

font-size: 14px;

line-height: 26px;

cursor: pointer;

}

.suggest ul li:hover{

text-decoration: underline;

background-color: #e5e5e5;

}

</style>

</head>

<body>

<div class="bg-box">

<div class="search-box">

<div class="logo"></div>

<form action="" method="post" id="suggest-form">

<input id="search-input" type="text" class="search-text"/>

<input type="submit" class="search-btn" value=""/>

</form>

</div>

</div>

<div class="suggest" id="search-suggest" style="display: none;">

<ul id="search-result">

<li>搜索結(jié)果1</li>

<li>搜索結(jié)果2</li>

</ul>

</div>

<script src="js/jquery-1.10.2.min.js"></script>

<script type="text/javascript">

$("#search-input").on('keyup',function(){

var searchText = $("#search-input").val();? ? ? ? ? ??

? ? ? ? ?$.ajax({? ? ? ? ? ? ? ? ?

? ? ? ? ? ?type:'get',? ? ? ? ? ? ? ? ??

? ? ? ? ? ?url:'http://api.bing.com/qsonhs.aspx?type=cb&q='+searchText,? ? ? ? ? ? ? ? ?

? ? ? ? ? ?async:true,? ? ? ? ? ? ? ? ??

? ? ? ? ? ?dataType:"jsonp",? ? ? ? ? ? ? ??

? ? ? ? ? ?jsonp:'cb',? ? ? ? ? ? ? ? ??

? ? ? ? ? ?success:function(data){? ? ? ? ? ? ? ? ? ? ? ? ??

? ? ? ? ? ? ?var data = data.AS.Results[0].Suggests;? ? ? ? ? ? ? ? ? ? ? ? ? ?

? ? ? ? ? ? ?var html="";? ? ? ? ? ? ? ? ? ? ? ??

? ? ? ? ? ? ?for(var i=0;i<data.length;i++){? ? ? ? ? ? ? ? ? ? ? ? ? ? ??

? ? ? ? ? ? ?html+='<li>'+data[i].Txt+'<li>';? ? ? ? ? ? ? ? ? ? ? ? ?

? ? ? ? ? ? ?}? ? ? ? ? ? ? ? ? ? ? ??

? ? ? ? ? ? ?$("#search-result").html(html);??

}

? ? ? ? ? ?})

? ? ? ? ?

? ? ? ? ?

$("#search-suggest").show().css({

'top':$("#suggest-form").offset().top+$("#suggest-form").height()+10,

'left':$("#suggest-form").offset().left,

});

})

</script>

</body>

</html>


正在回答

2 回答

原來是這樣……orz,!

0 回復(fù) 有任何疑惑可以回復(fù)我~

OK解決了,原來是請(qǐng)求地址寫成了http

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
搜索框制作
  • 參與學(xué)習(xí)       66025    人
  • 解答問題       454    個(gè)

本課程從簡(jiǎn)入深講解搜索框的制作,學(xué)習(xí)JQ與JS實(shí)現(xiàn)Ajax技術(shù)的不同點(diǎn)

進(jìn)入課程

請(qǐng)求的時(shí)候報(bào)錯(cuò)了,怎么回事呢?求解

我要回答 關(guān)注問題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)