我开发了一个react应用程序,它显示了错误
React Intl缺少区域设置的区域设置数据:“未定义”。使用默认区域设置:"en“作为备用。
我的app.js
import{ IntlProvider,addLocaleData } from "react-intl";
import messages from "./messages";
import{locale} from "./reducers/locale";
import {setLocale} from "./actions/locale";
class
我正在尝试显示wordpress系统之外的帖子(另一个系统正在从mysql数据库中提取)。但是,存储在数据库中的帖子似乎没有<p>标记,并且不同于在文本模式(或可视化模式)中输入的内容。
例如,在编辑器中输入
<h3>Subheadline</h3>
<p>Sentence here with more content</p>
结果保存到数据库中:
<h3>Subheadline</h3>
Sentence here with more content
我想显示来自API的自定义数据,该API将在专人管理中包含4行数据,我不想使用来自 Person three 的默认数据,所以我如何在Person管理中传递人的数据列表--默认情况下--它仅以三行显示数据,但我想在SPFX中的4行中显示一个人的4个细节。
我提供了代码的示例实现,
public render(): React.ReactElement<IMgtComponentsProps> {
return (
<Person
personQuery="me"