Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jquerymobile:幻灯片转换_Jquery_Html - Fatal编程技术网

jquerymobile:幻灯片转换

jquerymobile:幻灯片转换,jquery,html,Jquery,Html,我有一个带幻灯片过渡超链接的按钮 <a href="register.html" data-transition="slide"><img src="images/enter_btn.png" width="82" height="82" /></a> 但是上面的代码并没有打印文本。当我再次重新加载页面时,它会打印日志文本。这是为什么??帮我做这个 谢谢,您

我有一个带幻灯片过渡超链接的按钮

<a href="register.html" data-transition="slide"><img src="images/enter_btn.png"  width="82" height="82" /></a>
但是上面的代码并没有打印文本。当我再次重新加载页面时,它会打印日志文本。这是为什么??帮我做这个


谢谢,您正在使用的幻灯片属性仅用于幻灯片目的,在这种情况下,您的DOM不会重新加载。因此,您已经将代码放在
a
标记的onclick函数上。

如果register.html上没有准备好的文档,我如何使用onclick函数?您可以在html的头部添加JS,并将代码放在JS文件中。$(document));喜欢上面的方式,你可以打电话。或者我不知道你在做什么,因为我没有你的代码。请参考以下问题:-
$(document).ready(function() {
 console.log('here');
});