is_member, is_guest, is_admin 코드 선언 위치 변경
This commit is contained in:
28
test.php
28
test.php
@ -1,22 +1,12 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>AJAX 동적 컨텐츠 테스트</title>
|
||||
<script src="js/jquery-1.8.3.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<?
|
||||
echo a(2);
|
||||
|
||||
<a href="">클릭</a>
|
||||
<div></div>
|
||||
function a($b)
|
||||
{
|
||||
global $x;
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
$('a').click(function(){
|
||||
$('div').text('클릭되었습니다.');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
echo $x+$b;
|
||||
}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
$x = 1;
|
||||
?>
|
||||
Reference in New Issue
Block a user