在sql server中,我有products表,其中包含json数据记录,如下所示。我希望表格格式
中每个json行的逗号分隔键记录输入:
JsonData
ID,ActionType,Add-On-Name,Add-On-Price
Name,Menu Column Location
ActionType,Feature-Option,Features
ID,ActionType,Sub-Add-On-Description,add-on,sub add-on
期望输出:
function logProps(WrappedComponent) {
return class extends React.Component {
componentWillReceiveProps(nextProps) {
console.log('Current props: ', this.props);
console.log('Next props: ', nextProps);
}
render() {
// Wraps the input component in a container, without mutating it. Good!
return <WrappedComponent {...this.props} />;
}
}
}
注意:
不应为每条记录重复Json密钥,所有json密钥记录都应该在一个表中