我在 Laravel 5.4 中工作,Vue 组件没有显示/更新。我开始一个新项目并在 web.php 中创建一个路由 /chat
这是chat.blade.php
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="css/app.css">
</head>
<body>
<div id="app">
<example></example>
<chat></chat>
</div>
<script type="text/javascript">
window.Laravel = { csrfToken: '{{ csrf_token() }}' };
</script>
<script src="js/app.js"></script>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
这是 app.js
require('./bootstrap');
Vue.component('example', require('./components/Example.vue'));
Vue.component('chat', require('./components/Chat.vue'));
const app = new Vue({
el: '#app'
});
Run Code Online (Sandbox Code Playgroud)
Example 和 Chat 组件是一些基本模板,我没有传递任何数据,只是纯文本。
Chat.vue
<template lang="html">
<div id="content">
<h1>Messages</h1>
<p>Message text</p>
<small>Hiii</small>
</div>
</template>
<script>
export default {
}
</script>
Run Code Online (Sandbox Code Playgroud)
当我第一次运行 php artisan 时,一切正常。我尝试在 …
我正在使用 BrowserStack 在 Python 中运行 Selenium 脚本。请记住,我是 Python 新手,所以也许有一个我没有看到的简单解决方案。
你可以在这里看到代码
如何解决“ResourceWarning: Enable tracemalloc to get the object allocation traceback”错误?我需要安装一些软件包,在设置中启用某些东西,还是..?正如您在底部看到的那样,测试总是会执行,但这些警告总是会出现。