我有兩個工作職能。如何在window.setInterval內每分鐘運行$ .getJSON(..)?如何在window.setInterval內每分鐘運行getJSON函數?
<script>
window.setInterval(function(){
functionCall(); // ??
}, 60000);
</script>
<script>
$(document).ready(function() {
var query = "SELECT * FROM schedule;";
$.getJSON(
'modules/mod_scheduler/updateList.php?query='+query,
function(data)
{
createChartControl('schedule', data);
}
);
});
</script>
http://en.wikipedia.org/wiki/SQL_injection – 2012-08-11 14:30:19