Javascript 搜索关于删除属性。。。谢谢:) <!DOCTYPE html> <head> <title>h2: <?php echo $_GET['product']; ?> </title> <me
搜索关于删除属性。。。谢谢:)Javascript 搜索关于删除属性。。。谢谢:) <!DOCTYPE html> <head> <title>h2: <?php echo $_GET['product']; ?> </title> <me,javascript,jquery-mobile,Javascript,Jquery Mobile,搜索关于删除属性。。。谢谢:) <!DOCTYPE html> <head> <title>h2: <?php echo $_GET['product']; ?> </title> <meta charset="UTF-8" /> <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;' nam
<!DOCTYPE html>
<head>
<title>h2: <?php echo $_GET['product']; ?> </title>
<meta charset="UTF-8" />
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;' name='viewport' />
<link rel='stylesheet' href='assets/css/styles_mob.css'/>
<link rel='stylesheet' href='assets/css/styles.css' />
<link href='assets/css/jquery-mobile.css?<?php echo filemtime("assets/css/jquery-mobile.css");?>' type='text/css' rel='stylesheet' />
<script type='text/javascript' src='http://code.jquery.com/jquery-1.7.min.js'></script>
<script type='text/javascript' src='http://code.jquery.com/mobile/1.0rc2/jquery.mobile-1.0rc2.min.js'></script>
</script>
<script type='text/javascript'>
function mymessage(msg)
{
if(!msg) msg="?";
alert(msg);
}
</script>
</head>
<body onload="mymessage('onload !')">
<div data-role="page" id="Home">
<div data-role="header" data-theme="b">
<a href="./" data-icon="home" data-iconpos="notext" data-transition="fade">Home</a>
<h1> <?php echo $title?></h1>
</div>
<div data-role="content">
<li><a href='#Gallery1' onClick='mymessage(\"press gallery\")' >...</li>
<!DOCTYPE html>
<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>h2: <?php echo $_GET['product'];?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;">
<link rel="stylesheet" type="text/css" href="assets/css/styles_mob.css">
<link rel="stylesheet" type="text/css" href="assets/css/styles.css">
<!-- this next line makes me wonder.. why?! -->
<link rel="stylesheet" type="text/css" href="assets/css/jquery-mobile.css?<?php echo filemtime('assets/css/jquery-mobile.css');?>">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0rc2/jquery.mobile-1.0rc2.min.js"></script>
<script type="text/javascript">//<![CDATA[
function mymessage(msg){
msg=msg||'?'; //the usual way to provide defaults
alert(msg);
}
window.onload=function(){ //setting your onload event.
mymessage('onload !');
};
//]]>
</script>
</head><body>
<div data-role="page" id="Home">
<div data-role="header" data-theme="b">
<a href="./" data-icon="home" data-iconpos="notext" data-transition="fade">Home</a>
<h1><?php echo $title;?></h1>
</div>
<div data-role="content">
<ul> <!-- Here is your link, working -->
<li><a href="#Gallery1" onclick="mymessage('press gallery');">...</a></li>
</ul>
<!-- added some closing tags for demo-sake -->
</div></div>
</body></html>
$(document).on('pageinit','[data-role=page]', function(){
mymessage('hihi');
});
$(document).bind("mobileinit", function(){
$.mobile.ajaxEnabled = false;
});