单项选择题

已知y=loga(2-ax)在[0,1]上是x的减函数,则a的取值范围是______。

A.(0,1)
B.(1,2)
C.(0,2)
D.[2,+∞)