framework7 ajax post提交

var $$ = window.Dom7; //do get request $$.get('path-to-file.php', {id:3}, function (data) { consol.log(data); } //do post request $$.post('path-to-file.php', {id:3}, function (data) { consol.log(data); } //get JSON request $$.getJSON('path-to-file.js', function (json) { consol.log(json); }
相關文章
相關標籤/搜索