Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道为什么有时代码不在一行中,我必须做些什么来修复它?(正则表达式的问题?)它看起来像这样:
**var PelnyOpisEdytuj = '@Model.PelnyOpis';**
问题示例:
我发现解决方案可能并不完美,但工作正常。我用参数创建了 div,然后我获取了数据。正则表达式有问题。
<div id="DivExample" style="display: none;"> @Html.Raw(@Model.ExampleText) </div> <script type="text/javascript"> //komenatatz zapytanie var DivExampleData= $('#DivExample').text(); </script>