基于jQueryUI和Corethink实现百度的搜索提示功能

前端之家收集整理的这篇文章主要介绍了基于jQueryUI和Corethink实现百度的搜索提示功能前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

先给大家展示下效果图:

这里写图片描述

目录:

这里写图片描述

这里是以corethink模块的形式,只需要安装上访问

index.PHP?s=/test/index

1.建好模块目录,写好模块的总体文件

opencmf.PHP

PHP;"> array( 'name' => 'Test','title' => 'Test','icon' => 'fa fa-newspaper-o','icon_color' => '#9933FF','description' => 'Test','developer' => 'pangPython','website' => 'http://blog.csdn.net/u012995856/','version' => '1.3.0','dependences' => array( 'Admin' => '1.3.0',) ),// 用户中心导航 'user_nav' => array( ),// 模块配置 'config' => array( ),// 后台菜单及权限节点配置 'admin_menu' => array( '1' => array( 'id' => '1','pid' => '0',),'2' => array( 'pid' => '1','title' => '内容管理','icon' => 'fa fa-folder-open-o',) );

2.写控制器

IndexController

PHP;"> display(); } public function mydata($keyword){ if ($keyword==11) { echo '["pangPython","HelloWorld"]'; }else{ echo '["ActionScript","AppleScript","Asp","BASIC","C","C++","Clojure","COBOL","ColdFusion","Erlang","Fortran","Groovy","Haskell","Java","JavaScript","Lisp","Perl","PHP","Python","Ruby","Scala","Scheme"]'; } } }

3.写前台文件

index.html

PHP;"> <Meta charset="utf-8">

猜你在找的PHP相关文章