我有一个网站,可以创建以下网址
https://www.website.com/timings/result.php?city=Patna%2C+Bihar%2C+India&method=1
但我愿意让它变得干净如
https://www.website.com/timings/result/cityname或类似的东西。
尝试了以下代码,但没有运气。
class A {
class func thefunc() -> String {
/* Can I here know if thefunc was called using
A.thefunc() or
B.thefunc()?
*/
return "A" /* or "B"= */
}
}
class B: A {
}