Home > front end >  V - model about vue assignment problem
V - model about vue assignment problem

Time:12-24


How to pay the value of the model and displayed in the input box?

CodePudding user response:

 & lt; ! DOCTYPE html> 


<meta charset="utf-8" & gt;
Vue test case & lt;/title> <br/><script SRC="https://cdn.staticfile.org/vue/2.2.2/vue.min.js" & gt; </script> <br/></head> <br/><body> <br/><Div id="app" & gt; <br/><Input type="text" v - model="schedule. CronExpression" placeholder="such as: 0 0 12 * *?"/> <br/></div> <br/><br/><script> <br/>New Vue ({<br/>El: '# app, <br/>Data: {<br/>The schedule: {cronExpression: '0 0 12 * *? ABC '} <br/>} <br/>}) <br/></script> <br/></body> <br/></html> </pre><p class="article - content rp"> CodePudding user response: </p>Can you tell me the solution<p class="article - content rp"> CodePudding user response: </p>First defined in the data schedule: {cronExpression: null} then mounted inside the assignment this. The schedule. The cronExpression="12" trying to each update, input display is 12 </div> <div class="th_page th_page_color"></div> <div class="umCopyright"> <p>Page link:<a href="/frontend/95926.html" target="_blank" style="color:#999">https//www.codepudding.com/frontend/95926.html</a></p> </div> <div class="detail-arr"> <div class="detail-arr-left">Prev:<a href='/frontend/95776.html'>In HTML code, how to open the local computer files, or excel documents</a></div> <div class="detail-arr-right">Next:<a href='/frontend/95927.html'>Wtforms form rendering error information</a></div> </div> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="hot-tags neitags"> <ul> <li><i class="iconfont icon-x-tags"></i> Tags:  </li> <a href='/e/tags/?tagname=JavaScript' target='_blank'>JavaScript</a> </ul> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="xiangguan"> <ul class="msg msghead"> <li class="tbname">Related</li> </ul> <ul> </ul> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="flinks"> <ul> <li><i class="iconfont icon-x-tags"></i> Links:  </li> <li class="liflinks"><a target="_blank" href="/" title="CodePudding">CodePudding</a></li> </ul> </div> </div> </div> </div> <div class="footer"> <p><span style="font-size:16px;color:#666;font-weight: bold">About Us:</span>  <a href="https://www.codepudding.com/contact.html">Contact Us</a>      <a href="https://www.codepudding.com/service.html">Terms of Service</a>      <a href="https://www.codepudding.com/privacy.html"> Privacy Policy</a></p> <p class="foot_info">Copyright © 2010-2023,Powered By <a href="/" target="_blank">CodePudding</a> </p> </div> <script type="text/javascript" src="/skin/code/tianhu.js"></script> </body></html>