Home  >  Article  >  Backend Development  >  PHP中模糊查询解决方案

PHP中模糊查询解决方案

WBOY
WBOYOriginal
2016-06-13 12:06:001134browse

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方法
    }
}

Statement:
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