Reconstructing the evolution of dark energy with the variaton of fundamental parameters