单项选择题

var n = "miao wei ke tang".indexOf("wei");
n的值为:()

A.-1
B.5
C.程序报错
D.-10