mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Reorganzing the jQuery source (first phase).
This commit is contained in:
10
test/data/jsonp.php
Normal file
10
test/data/jsonp.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
error_reporting(0);
|
||||
$callback = $_REQUEST['callback'];
|
||||
$json = $_REQUEST['json'];
|
||||
if($json) {
|
||||
echo $callback . '([ {"name": "John", "age": 21}, {"name": "Peter", "age": 25 } ])';
|
||||
} else {
|
||||
echo $callback . '({ "data": {"lang": "en", "length": 25} })';
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user