我想將該字符串轉換爲String.Format但我無法正確格式化該字符串。請如果你能幫助我。String.Format問題
string s = "$(\"#container\").notify();$(\"#container\").notify(\"create\", \"basic-template\", { title: '{0}', text: '{1}'},{ expires: false, speed: 1000 });";
我想這個到string.Format。我試圖轉換它,但它顯示我錯誤。輸入字符串格式不正確
什麼樣的格式? – adatapost 2012-07-21 07:27:20
嘗試:'「$(\」#container \「)。notify(); $(\」#container \「)。notify(\」create \「,\」basic-template \「,{{title:' {0}',text:'{1}'}},{{expires:false,speed:1000}});「' – 2012-07-21 08:10:34