0

我正在使用 pagedown 作为我的编辑器,现在我提交后得到的数据库如下:

This is what i love about 

`[A-Z]+` - One or more capitalcase ASCII caracters.

`[^A-Z]*` - We are using negated chracter class here by using the ^ sign, basically we are saying, look for any character besides the one in the [] brackets, * means zero or more times.
  | - Or

`[^A-Z]+` - Look for any character besides the one in the [] brakets, another negated character class. + means one or more times.

`g` - We add the global flag, so we get all possible matches and don't just stop at one match.

我的预期输出是包含在单独段落中的每一行。此外,当我在 pagedowneditor 中输入并查看编辑器下方的实时更新时:

在此处输入图像描述

现在,如果我检查开发工具:

在此处输入图像描述

我可以看到这里的文本被完美地包裹在单独的段落中,但为什么我的数据库中没有插入相同的文本?

4

1 回答 1

0

我真的不知道你在问什么,或者你在输出什么,但这就是我要说的;

您的数据库与 HTML 页面的格式不同。一般来说,这不应该打扰你。如果您希望在 HTML 页面上显示该信息,请使用 PHP 之类的东西使用 HTML 标记将其回显,并以这种方式将它们分开。

于 2017-04-29T07:38:12.117 回答