(2006•宝山区二模)若sin2θ+icosθ是纯虚数(i是虚数单位,θ∈(0,2π)),则θ的值为______.