jquery-address

ajax loaded content, script is not executing

久未见 提交于 2019-11-27 07:15:42
问题 I am using jquery address plugin for loading pages, but without hash(#). index.html: <a href="page.html">Link</a> <div id="content"> <script> $(document).ready(function() { $.address.init(function(event) { $('a').address(); }).change(function(event) { // do something depending on the event.value property, e.g. console.log(event.value); $.ajax({ type: "POST", url: event.value, success: function(msg){ $('#content').html( $(msg).find("#content").html() ); } }); }); $('a').click(function(e) { $