腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(7944)
视频
沙龙
1
回答
vue.js
未
捕获
TypeError
:
this.
$
emit
不是
函数
javascript
、
vue.js
、
vue-component
export default { setTimeout(function() { }, 4000);} //views/Load.vue 我想在页面访问4秒后转到另一个页面。template> export default { methods: { changeRoute (r
浏览 192
提问于2020-01-04
得票数 1
回答已采纳
3
回答
vue.js
无法在创建的
函数
中调用
函数
javascript
、
vue.js
、
websocket
、
typeerror
、
sweetalert
我正在尝试使用甜蜜警报在
vue.js
中编写对websocket消息的响应。 遗憾的是,我不能调用在创建的onmessage内的方法中定义的甜蜜警报或
函数
。
未
捕获
的
TypeError
: this.confirmation
不是
WebSocket.connection.onmessage中的
函数
methods: { if (response.data == "stop") {
浏览 95
提问于2020-09-11
得票数 1
1
回答
自定义vue事件不起作用
javascript
、
events
、
vue.js
我试图在一个组件中
捕获
vue.js
自定义事件,但它没有
捕获
到。有什么问题吗?myEventFunc: function() {}, this.clicked = true;} JSFiddle示例:
浏览 1
提问于2017-09-11
得票数 0
2
回答
通过
this.
$refs从另一个
vue.js
组件调用方法
javascript
、
vue.js
、
vuejs2
、
vue-component
、
bootstrap-vue
methods:{
this.
$refs.fileUploader.click()} Got:
未
捕获
TypeError
:
this.
$refs.fileUploader.click
不是
一个
函数
b-file documentation
浏览 69
提问于2019-01-23
得票数 1
回答已采纳
2
回答
我尝试在Vue中重写此JavaScript单击事件时遇到问题
javascript
、
vue.js
我有一小段JavaScript代码,用于切换响应式导航菜单。 const toggleNavigation = document.getElementsByClassName('navigation-icon')[0]navbarLinks.classList.toggle('activ
浏览 29
提问于2021-04-11
得票数 0
3
回答
Vuejs模态组件不能在axios调用后发出。
laravel
、
vue.js
methods: {
this.
$
emit
('hide'); save(){ console.log(
this.
$data); .then(function (response) {
this.
不起作
浏览 5
提问于2017-06-19
得票数 0
回答已采纳
1
回答
组件中的VueJs $
emit
在异步方法中触发时
未
触发父级
typescript
、
vuejs2
在异步/等待模式中,事件是发出的,而
不是
由父级
捕获
的 if (this.canSave) {
this
$
emit
('plot-saved');}save() { this.savePlot() <
浏览 1
提问于2021-02-24
得票数 0
3
回答
在vue中不工作的同级组件通信
javascript
、
vue.js
、
components
$
emit
('eventname', 'somedata');
this.
$
emit
('myEvent',
浏览 1
提问于2019-02-20
得票数 0
1
回答
是否要检查$parent是否存在于
vue.js
中?
javascript
、
laravel
、
vue.js
有时我会犯这样的错误:test() {}...
this.
$parent.test()我知道还有其他方法可以做到这一点,但我想知道的是,我是否可以检查这个家长是否存在!!这在
vue.js
中有可能吗??谢谢
浏览 1
提问于2019-11-25
得票数 0
回答已采纳
2
回答
Vuejs2中的自定义事件
vue.js
、
vuejs2
我执行以下方法: /* Code omitted */}, Wich发出一个名为server-changed的事件,我希望在另一个组件accounts-linked
浏览 5
提问于2017-09-10
得票数 0
回答已采纳
1
回答
尝试
捕获
vue.js
2上的事件,但未成功
vue.js
、
vuejs2
、
event-bus
我在使用
vue.js
2
捕获
事件时遇到了问题。我使用事件总线来发出和
捕获
事件。getLevelItems(parent) {},mounted() {
浏览 2
提问于2018-07-06
得票数 0
1
回答
Vue.js
3这个.$root.$on
不是
一个
函数
javascript
、
vue.js
、
events
、
vue-component
、
vuejs3
我有一个触发
this.
$root.$
emit
('some-root-event')的组件,如
this.
$root.$
emit
("some-root-event", "aaaaaaaaaaaaaaaaaaaaaa");}
浏览 5
提问于2020-08-27
得票数 17
回答已采纳
2
回答
如何在api调用完成后在Vue中发出数据
node.js
、
vue.js
、
vue-component
我有一个触发API调用的windows.addEventListener。我需要将api调用中的名称传递给父组件,以便将其显示为仪表板上的标题。如何将数据发送到父组件 <sankey-input-details v-if="!tableLoading" :cardListData="dataFromApi"/> const nodeData = this.dateRange
浏览 7
提问于2022-09-07
得票数 0
回答已采纳
1
回答
vuejs组件事件:不工作
javascript
、
vue.js
、
vuejs2
、
vue-component
、
vue-events
我有一个vuejs组件,在我的组件中的一个方法中,我正在发送这样一个事件:在父服务器上,我尝试使用但是上面的方法从未运行过
浏览 1
提问于2018-03-27
得票数 2
回答已采纳
3
回答
Vuejs 2:将事件从组件发送到父级
javascript
、
vuejs2
my-component', { methods: {
this
$
emit
('send', 'bye') } el: "#app", text: "hello"
浏览 0
提问于2017-02-10
得票数 26
回答已采纳
2
回答
Vue.js
/JSX:动态事件名称
javascript
、
vue.js
、
vuejs-jsx
我正在编写一个
Vue.js
组件。该组件呈现一个<input>元素。根据属性的值,事件侦听器正在侦听change或input事件。 如何用JSX编写渲染
函数
?return h('input', { type: 'text', on: { }
浏览 44
提问于2019-01-10
得票数 3
回答已采纳
2
回答
这个
TypeError
是否与错误的.$
emit
联系在一起?
javascript
、
vue.js
、
vue-component
(p) { return w.id === p.id
this
:1739 Uncaught
TypeError
: fns[i].apply is not a function at VueComponent.deleteID (sea
浏览 2
提问于2017-06-08
得票数 0
回答已采纳
3
回答
在Vuejs中子节点向父节点传递数据(有这么复杂吗?)
vue.js
、
emit
我使用$
emit
将数据传递给父组件,但它不起作用。你知道哪里出问题了吗?; this.productSelected = product; }}); delimiters: ['[[', ']console.log(value); this.p
浏览 1
提问于2017-04-11
得票数 63
回答已采纳
1
回答
TypeError
:
this.
$__setSchema
不是
函数
node.js
、
database
、
mongodb
、
mongoose-schema
但是在运行代码时,我得到了类似
TypeError
的错误:
this.
$__setSchema
不是
一个
函数
。 ? //Function Called } this.schema = schema;
this
浏览 19
提问于2021-04-04
得票数 1
2
回答
TypeError
:
this.
$route.push
不是
函数
vue.js
,并且
未
捕获
TypeError
:无法读取未定义的属性“”push“”
vue.js
、
vuejs2
、
vuex
、
vue-router
我得到了一个类似"
TypeError
:
this.
$route.push
不是
一个
函数
“的错误,即使我也尝试了ES6来绑定它,仍然不起作用。aboutText: "About Component" }, gobackToHome: function() { // $route or $router both are not work
浏览 2
提问于2018-11-16
得票数 6
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Vue.js最佳实践
连肝3个晚上,我总结了一份Vue实操绝密干货!
Vue.js权威指南
z-paging组件:实现高效下拉刷新与上拉加载的前端利器
Vuex 4 正式发布:打包现在与 Vue 3 一致
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券