【发布时间】:2017-05-03 08:34:32
【问题描述】:
我正在从 Internet 下载日历 html/php 文档,并想了解它是如何工作的。有人可以帮助我理解这个 java 脚本的作用吗? 同一个页面已经有getCalender函数了。
<script type="text/javascript">
function getCalendar(target_div,year,month){
$.ajax({
type:'POST',
url:'functions.php',
data:'func=getCalender&year='+year+'&month='+month,
success:function(html){
$('#'+target_div).html(html);
}
});
}
谢谢
【问题讨论】:
-
api.jquery.com/jQuery.ajax 阅读文档,那里都有解释
标签: javascript php syntax