第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

后臺查詢數(shù)據(jù)庫得到的數(shù)據(jù)怎么用react.js顯示

后臺查詢數(shù)據(jù)庫得到的數(shù)據(jù)怎么用react.js顯示

陪伴而非守候 2019-05-14 14:57:51
后臺查詢數(shù)據(jù)庫得到的數(shù)據(jù)怎么用react.js顯示
查看完整描述

2 回答

?
慕斯王

TA貢獻1864條經(jīng)驗 獲得超2個贊

1、用戶界面能做的最基礎的事情就是呈現(xiàn)一些數(shù)據(jù),React讓顯示數(shù)據(jù)變得簡單,當數(shù)據(jù)變化時,用戶界面會自動同步更新。
2、通過例子進行了解:

<!DOCTYPE html>
<html>
<head>
<script src="build/react.js"></script>
<script src="build/JSXTransformer.js"></script>
</head>
<body>
<divid="example"></div>
<script type="text/jsx">
var HelloWorld = React.createClass({
render: function() {
return (
<p>
Hello, <input type="text"placeholder="Your name here" />!
It is {this.props.date.toTimeString()}
</p>
);
}
});

setInterval(function() {
React.render(
<HelloWorld date={new Date()} />,
document.getElementById('example')
);
},500);
</script>
</body>
</html>





查看完整回答
反對 回復 2019-05-14
  • 2 回答
  • 0 關注
  • 726 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號