Đường cong $y=f\left( x \right)$ nhận đường thẳng $y=2$ là tiệm cận khi
A.$\underset{x\to {{2}^{-}}}{\mathop\lim }\,f\left( x \right)=-\infty $hoặc $\underset{x\to {{2}^{+}}}{\mathop\lim }\,f\left( x \right)=+\infty $.
B.$\underset{x\to {{2}^{-}}}{\mathop\lim }\,f\left( x \right)=+\infty $hoặc $\underset{x\to {{2}^{+}}}{\mathop\lim }\,f\left( x \right)=-\infty $.
C.$\underset{x\to +\infty }{\mathop\lim }\,f\left( x \right)=2$ hoặc $\underset{x\to -\infty }{\mathop\lim }\,f\left( x \right)=2$.
D.$\underset{x\to \infty }{\mathop\lim }\,f\left( x \right)=-2$hoặc $\underset{x\to -\infty }{\mathop\lim }\,f\left( x \right)=2$.