更新时间:2022-03-25 07:21:14
( 。checkout-button)。click( function (){
alert( 警告信息);
} );
( ".checkout-button" ).click(function() { alert( "alert message" ); });
假设您要在userdata中检查名称,然后使用此代码创建名为checksession.php的页面
b $ b
Suppose that you want to check name in userdata then make a page with name checksession.php with this code
<?php echo isset(
_SESSION [' some_name'跨度>]); ?>
_SESSION['some_name']); ?>
then in jquery将此代码放入点击处理程序中
then in jquery put this code inside click handler