PHP中模糊查询解决方案

WBOY
Release: 2016-06-13 12:06:00
Original
1136 people have browsed it

PHP中模糊查询
用MVC 
我在M层写好了查询方法 
C层也写好了调用  但是在视图层点击onclick咋去调用C层的模糊查询方法啊
------解决方案--------------------
onclick=“do()”

js

function do(){
    location.href = 'http://localhost/Index/do'; //index是控制器 do是方法
}

class IndexAction extends Action{
    function do(){
        //调用M方法
    }
}

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template