主页搜索的问题

This commit is contained in:
caicai8 2019-12-19 20:35:32 +08:00
parent 7613be5997
commit 3747c3124d
1 changed files with 12 additions and 1 deletions

View File

@ -127,7 +127,17 @@
<script type="text/javascript" src="./js/jquery.easy_slides.js"></script> <script type="text/javascript" src="./js/jquery.easy_slides.js"></script>
<script type="text/javascript" src="./js/demo.js"></script> <script type="text/javascript" src="./js/demo.js"></script>
<script> <script>
$(document).ready(function () { $(document).ready(function () {
//回车
$(document).keydown(function(event)
{
if(event.keyCode==13 && $(".search-input-item.prov").is(":focus"))
{
var name = $(".search-input-item.prov").val();
init(name);
}
});
var graphContainer = document.getElementById('mainGraph'); var graphContainer = document.getElementById('mainGraph');
var myChartGraph = echarts.init(graphContainer); var myChartGraph = echarts.init(graphContainer);
@ -478,8 +488,9 @@
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
// window.init = init;
$(document).ready(function () { $(document).ready(function () {
$('.slider_one_big_picture').EasySlides({ $('.slider_one_big_picture').EasySlides({
'autoplay': true, 'autoplay': true,
'stepbystep': false, 'stepbystep': false,