mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-07 13:15:59 +08:00
33 lines
643 B
TypeScript
33 lines
643 B
TypeScript
function test_pjax() {
|
|
$.pjax();
|
|
}
|
|
|
|
function test_pjax_selector() {
|
|
$('a').pjax();
|
|
}
|
|
|
|
function test_pjax_option() {
|
|
$.pjax({
|
|
area: 'body',
|
|
load: {
|
|
head: 'base, meta, link',
|
|
css: true,
|
|
script: true
|
|
},
|
|
cache: { click: true, submit: false, popstate: true },
|
|
server: { query: null }
|
|
});
|
|
}
|
|
|
|
function test_pjax_event() {
|
|
$.pjax({
|
|
wait: 1000
|
|
});
|
|
$(document).bind('pjax.request', function () {
|
|
$('div.loading').fadeIn(100);
|
|
});
|
|
$(document).bind('pjax.render', function () {
|
|
$('div.loading').fadeOut(500);
|
|
});
|
|
}
|