(深圳大学,2008 年)计算 $n$ 阶行列式
$$
D=\left|\begin{array}{cccccc}
1 & 2 & 3 & 4 & \cdots & n \\
1 & 1 & 2 & 3 & \cdots & n-1 \\
1 & x & 1 & 2 & \cdots & n-2 \\
1 & x & x & 1 & \cdots & n-3 \\
\vdots & \vdots & \vdots & \vdots & & \vdots \\
1 & x & x & x & \cdots & 1
\end{array}\right| .
$$