Javascript 值更改处理程序的jquery历史记录?
我使用的历史jquery插件如下:Javascript 值更改处理程序的jquery历史记录?,javascript,jquery,history,handler,Javascript,Jquery,History,Handler,我使用的历史jquery插件如下: $.History.bind("anchor", function (state) {...}); 我想知道是否有一种方法可以不指定“锚点”,而是在锚点发生变化时调用函数,而不管锚点是什么。 因为我使用这个锚名称从一个文件加载内容,该文件的名称就是锚的名称 大概是这样的: $.History.onValueChange(function(value){ ... getContent(value); }); $.History.bind(function (
$.History.bind("anchor", function (state) {...});
我想知道是否有一种方法可以不指定“锚点”,而是在锚点发生变化时调用函数,而不管锚点是什么。
因为我使用这个锚名称从一个文件加载内容,该文件的名称就是锚的名称
大概是这样的:
$.History.onValueChange(function(value){ ... getContent(value); });
$.History.bind(function (state) {...});
谢谢。我找到了。根本不需要精确地确定必须绑定哪个“锚”,如下所示:
$.History.onValueChange(function(value){ ... getContent(value); });
$.History.bind(function (state) {...});
州是我的主播名字