这个网址应该能帮到你,有一些基本的语法,http://www.quantpsy.org/pubs/syntax_appendix_081311.pdf
Mplus syntax files for single- and multilevel mediation models, to accompany:
Preacher, K. J., Zyphur, M. J., & Zhang, Z. (2010). A general multilevel SEM framework for assessing multilevel mediation. Psychological Methods, 15, 209-233.
Preacher, K. J., Zhang, Z., & Zyphur, M. J. (2011). Alternative methods for assessing mediation in multilevel data: The advantages of multilevel SEM. Structural Equation Modeling, 18, 161-182.