The convergence of numerical method for nonlinear Schro¨dinger equation