【发布时间】:2011-06-30 07:47:46
【问题描述】:
我有一个关于 String.Format 的问题,需要帮助:
string Placeholder = @"(function({0}, $, undefined) { {1} }( window.{0} = window.{0} || {}, jQuery));";
string output = string.Format(Placeholder, "Value1", "Value2");
String.Format 处出现以下异常
'string.Format(Placeholder, "Value1", "Value2")' 抛出类型为 'System.FormatException' 的异常字符串 {System.FormatException}
知道为什么吗?
【问题讨论】: