function test(id) {var str = "{:url('documents/edit', ['id'=>'pid'])}";var url=str.replace('pid',id);//或者str = '{:url("documents/edit?id=")}'+id;str = "{:url('documents/add')}?"+"id="+id;window.location.href=url;
}
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号