課程
/前端開發
/Vue.js
/vue2.5入門
為什么刷新還是原來的this is content?
是不是并沒有改變data的content的值
2019-08-27
源自:vue2.5入門 2-4
正在回答
<input type="text" id="textInput">? 輸入:<span id="textSpan"></span>
var obj = {},??????? textInput = document.querySelector('#textInput'),??????? textSpan = document.querySelector('#textSpan');??? Object.defineProperty(obj, 'foo', {????? set: function (newValue) {??????? textInput.value = newValue;??????? textSpan.innerHTML = newValue;????? }??? });??? textInput.addEventListener('keyup', function (e) {??????? obj.foo = e.target.value;??? });
是沒有寫v-model吧
input的value值
我覺得你可以貼代碼出來,沒代碼不知道哪里錯?
舉報
快速理解Vue編程理念上手Vue2.0開發。
2 回答為什么props接收【‘content’】
4 回答拆分組件總是提示vue is not defined 為什么 沒找到原因
4 回答為什么我再<div>hello word 換成 {{msg}}頁面刷新的就是msg呢
3 回答:content到底是個什么屬性?
2 回答為什么重命名之后,頁面刷新并沒顯示TodoList
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2019-10-31
<input type="text" id="textInput">
? 輸入:<span id="textSpan"></span>
var obj = {},
??????? textInput = document.querySelector('#textInput'),
??????? textSpan = document.querySelector('#textSpan');
??? Object.defineProperty(obj, 'foo', {
????? set: function (newValue) {
??????? textInput.value = newValue;
??????? textSpan.innerHTML = newValue;
????? }
??? });
??? textInput.addEventListener('keyup', function (e) {
??????? obj.foo = e.target.value;
??? });
2019-10-02
是沒有寫v-model吧
input的value值
2019-08-28
我覺得你可以貼代碼出來,沒代碼不知道哪里錯?