调整页面
This commit is contained in:
7
public/assets/index/js/cjango.js
Normal file
7
public/assets/index/js/cjango.js
Normal file
@@ -0,0 +1,7 @@
|
||||
$('[data-href]').on('click', function (event) {
|
||||
event.preventDefault();
|
||||
if ($(this).hasClass('ajax-get') || $(this).hasClass('ajax-post')) {
|
||||
return;
|
||||
}
|
||||
location.href = $(this).data('href');
|
||||
});
|
||||
Reference in New Issue
Block a user