Home > Backend Development > PHP Tutorial > ci-PHP CI框架开发向javascript传递参数问题

ci-PHP CI框架开发向javascript传递参数问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-02 11:34:27
Original
1119 people have browsed it

ciphpjavascript

在网上看了一些关于PHP向Javascript传递参数的问题,运用了ajax技术,在php端基本都是echo json_encoded的方法,而且要求php文件要干净,我是想在CI框架里开发,让controllers可以传递一些多维数组给views,但是一传递参数使用echo方法就会显示在网页上。如何才能够正确的传送数据并且让这些数据不会显示在界面上呢?
//controllers:
$this->load->view('map',$position)
//position是个二位数组
//views
在map.php中,调用了javascript

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