本文共 1187 字,大约阅读时间需要 3 分钟。
其实没什么难道
写一起就行了
但是其实是各写个的,不要影响就行,程序如下:
function output(param) {
//alert($('#myimage').attr('value'));
var radiovalue=$('input[name="aaa"]:checked').val();
//alert(radiovalue);
$.ajax({
type: "GET",
//method: "Get",
dataType: "json",
data:{"radio": radiovalue,"imageid":$('#myimage').attr('value')},
url: "Save.php",
success: function(data){
window.location.reload();
}
});
}
$m = new Mongo();
// select a database
$db = $m->FourS2;
// select a collection (analogous to a relational database's table)
$collection = $db->imagelist;
$post = $collection->findOne();
//element for each image
$imageid = $post['_id'];
$imageurl = $post['Url'];
$venueid = $post['Venue_id'];
$venueurl = $post['Venue_url'];
$venuename = $post['Venue_name'];
$strimageurl = '
$strimageid = '
$strvenueid = '
$strvenuename = '
$strvenueurl = '
//$imageurl = explode(" ", $imageurl);
//输出结果
echo $strimageurl;
echo $strimageid;
echo $strvenueid;
echo $strvenuename;
echo $strvenueurl;
echo '
// iterate through the results
//echo var_dump($cursor);
?>
文件名是什么都无所谓。
当你看网页源代码,你就只能看到html的代码了。
当做是两个工具就行。整体的框架还是在html里面。
转载地址:https://blog.csdn.net/weixin_33520510/article/details/115571996 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!