maya95 wrote:原始碼https:/(恕刪) substring參數錯誤。請看https://docs.microsoft.com/zh-tw/dotnet/api/system.string.substring?view=netcore-3.1#System_String_Substring_System_Int32_System_Int32_第二個參數是長度不是 index依照你的寫法應該是這樣prod_id = prod_url.substr(q_mark-10, 10)
maya95 wrote:這是 .Net Core...(恕刪) ......沒錯啦- -是我眼殘String.substr( Start , Length )String.substring( Start , End )我一直看成substring---補個連結https://www.w3schools.com/jsref/jsref_substr.asphttps://www.w3schools.com/jsref/jsref_substring.asp前面留言就留給後人笑笑