我正在更改网址:
genslug(connection,slugs(user.name),1,slugs(user.name),function(err,resp){
if(err)
{
console.log(err);
}
console.log(resp);
})
function genslug(connection,slug,counter=1,orgSlug,callback) {
var query = connection.query('SELECT * FROM users WHERE slug = ?',slug,function(err,res) {
if(err)
callback(err,null);
if(res.length > 0){
counter++;
slug = orgSlug+'-'+counter;
//genslug(connection,slug,counter,orgSlug); - Callback function can't be call like this
}else{
callback(null, slug);
}
});
}
但这给了我:
history.replaceState('data to be passed', 'Title of the page', '<?php echo getAddress(); ?>/?usp-custom-14="'+urldates+'"&usp-custom-8="'+title+'"');
我需要移除https://example.com/test/results/?usp-custom-14="1934+2017"&usp-custom-8="United%20States"
才能完成:
" "
答案 0 :(得分:1)
istory.replaceState('data to be passed', 'Title of the page', '<?php echo getAddress(); ?>/?usp-custom-14='+urldates+'&usp-custom-8='+title+'');
答案 1 :(得分:0)
使用此:
django.template.loaders.app_directories.Loader