我使用显示一些绑定变量。我页面的骨架是
<body>
<!-- the content of the page, including an instance of the variable {{hello}} -->
<script src="vue.js"></script>
<script src="myscript.js"></script>
</body>
打开页面时,页面显示{{hello}}的时间很短,在此之后,将立即替换为变量hello的正确值。
什么是正确的方法(
当我开始使用JS处理web页面时,我添加了一个jQuery函数,该函数检查用户插入的数据是否正确,并返回false (return false;),并且表单没有刷新页面。现在,在添加AJAX之后,表单会刷新,我不知道为什么。下面是我的JS代码:
<script>
$("form").submit(function(){
// in this area I have a lot of IF's that checks if everything is currect, this area worked and did n