Home  >  Article  >  Backend Development  >  初学者求指导!

初学者求指导!

WBOY
WBOYOriginal
2016-06-13 12:48:24861browse

菜鸟求指导!!
毕业生,毕业设计求教!可能有点长,真心希望帮忙!!谢谢!
由于不会用ajax所以有一下的事情发生


echo '';


其实我是想做分页的,但一个页面有几个分页,
假设我点击第一个分页的按钮,成功分页后
(http://localhost/steak/delicioustour.php?page_c=2&

再点击第2个分页的按钮,那么第一个分页的内容就会改变了,第二个也可以成功分页
http://localhost/steak/delicioustour.php?page_t=2&

但我理想的url是
http://localhost/steak/delicioustour.php?page_c=2&page_t=2


因此我,在a标签哪里加了一个onclick,调用js函数,改变$addurl[0]的值

function cookre(){
alert('aa');

}

function cookin(){

alert('bb');
}


但是我点击a标签的时候,没有调用到那个onclick的方法,不知道怎么写才能调用!!!求指导!
可能是语法的问题!!

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