(2014•房山区二模)若a∈R,i为虚数单位,且(a-i)i=1+2i,则a=(  )