I saw a article via link. There are four methods, I just did a short summary here for helping other programmers.
EXEC sp_helptext 'sp_name';
SELECT OBJECT_ID('sp_name')
SELECT OBJECT_DEFINITION( OBJECT_ID('sp_name') ) AS [Definition];
SELECT * FROM sys.sql_modules WHERE object_id = object_id('sp_name');