我有路线结构:
source config.txt
# SQL injection
# values=$(printf "'%s'\n" "${VAR[@]}" | paste -sd,)
values=$(printf "'%s'\n" "${VAR[@]//\'/\'\'}" | paste -sd,)
select="select name from my_table where word in ($values)"
output=$(mysql "$database" -u "$user" -p"$pass" -se "$select")
}
例如: 如果我目前的路线是“在线学习”或其他儿童路线,父母组件如何知道孩子的路线是否开放?
可能是{
path: '',
component: LibraryComponent
,
children: [
{
path: '',
component: LibraryPageComponent
},
{
path: 'online-learning',
component: LibraryCoursesPageComponent
},
{
path: 'events',
component: LibraryEventsPageComponent,
}
// another children
]
中的某种方法或值。
P.S。有没有解析网址的解决方案吗?
谢谢!