如何在网站中从一个页面跳到另一个页面时保存上一个搜索中使用的令牌? 当我再次访问该页面时,我想恢复旧的搜索条件标记。
caching: true
运作良好,但我不知道如何检索旧代币
$('#searchinput').tokenInput(searchServiceUrl, {
theme: "facebook",
queryParam : "param",
preventDuplicates: true,
tokenDelimiter: "|",
minChars: 1,
hintText: "Type your search criteria here",
noResultsText: "No Results found. Please refine your search...",
searchingText: "Fetching results ...please wait...",
allowCustomEntry: true,
searchDelay: 2,
resultsLimit: 10,
allowFreeTagging: false,
selectToEdit: true,
crossDomain: false,
caching: true,
onAdd: function (item) {
var selectedValues = $('#searchinput').tokenInput("get");
$.each(selectedValues , function(i, val) {
var id = selectedValues[i].id.split(")");
});