using Vue to report an error [Vue warn]: Error in nextTick: "TypeError: fn.bind is not a function"
page cannot be entered.
using Vue to report an error [Vue warn]: Error in nextTick: "TypeError: fn.bind is not a function"
page cannot be entered.
read the error message is that there is a method in methods that you write is not a function, you may write an object or something. When vue does fn.bind () processing, .bind may get undefined.
share a little bit of my experience of handling this exception.
vm.$options.methods
there are objects in this array that are not of type function.
how did this come about?
uses this form of call when calling component methods, this.$options.methods.fun ()
, and the this in this fun does not point to vm, but to this this.$options.methods
object. If you have code such as this.xx= []
in fun, it will report such an exception.
Hello, have you solved it? I have exactly the same problem
check the method
in your methods to see if data mounted methods is writing a method or an object
it should mean that you are now using the element of the .bind method that does not have the bind method. You can first take a look at the element console
if this sentence appears, you can see which sentence this error occurs. Fn.bind appears in the vue code. For example, the 2.5.13 version of vue does not report an error, but if you upgrade to a new version, this will be wrong. So I suggest changing the version of vue
is it the error of the port report?
Vue.component (name, comp)
mode.
my situation is slightly complicated. I used the above method to register the global component, which is used through v-else-if
on the page, and only uses the component when the condition is met, in which case the error message occurs.
I re-registered the component on the page to solve this problem.
this kind of error can be solved by looking at the console. Fn.bind is not a method.
Previous: Which step does the git push card write to the object?
Next: Element-ui Tree control, how to get the ID? of the parent node
description: a regular match is given to the content of an input box, and the matching content is the product activation code. looks like this: "0C31-0B81-BB32-3094-0C31-0B81-BB32-3094 " Code: $( -sharplicenseCode ).keyup(function () { le...
do the gods have plug-ins for uploading attachments in the mobile version that can also be uploaded more than one? ...
wrote an H5 page. According to the official description of Wechat jssdk, it is found that the shared icons and descriptions are invalid. the code is like this ....
what is the current level of support for vw,vh layouts in mobile browsers? ...
...
this method is included in the constructor of most components, so what exactly is this method for constructor(props,context){ super(props,context) } ...
adopt a reward of 10 yuan, 1045 Access denied for user root @ localhost (using password:NO) recently, when I was at the front end of my self-study, I came into contact with a little bit of database. This happened when I made a new connection on ...
as shown in the red box of the second picture, is there any recommendation for this plug-in? Thank you. the screenshot is uploaded, so let s just look at it. nothing can be found in vueawesome. ...
http: shrek.imdevsh.com demo. ask for help: the principle of inertia retardation effect in demo touchmove ...
want to explain how to make table different colors? is not different. is . <table> <tr> <td width="100">a< td> <td><a>< td> < tr> <tr> ...
I ve been looking for it for a long time, but I can t find it. 1. After the direct upload of web is completed, the server cannot know whether the file was uploaded successfully, who uploaded it, and the information of the file 2. Using web to dire...
is not to analyze user browsers, but to evoke Wechat app in Weibo app and open a link with Wechat app; WeChat Work can have this function, whether Weibo has a similar configuration. ...
A picture grows slowly when it slides up to a certain extent. Why does it bring out a line that has been entangled all night? I can t find the reason. ...
write a line chart with native JS, right-angled ones can be written, but now you need to change into a smooth curve, similar to: the inflection point is still at a right angle, is there any god who can provide the next solution ...
in Wechat browser, it is required and only required to be compatible with iOS8+ and Android4.4+ existing icon is bound with click event fullScreen . After clicking this button, the video vdo of inline can be full screen: . const fullScreen = e =&g...
for example, I request localhost:8080 a b c.cd proxy to http: www.aaaa.com api can you change a b c.cd to a b c , before proxy? means that the agent rewrites the original path before. ...
question 1. The project is a chat application, which needs to display the latest news in the chat window in real time. Using the scrollIntoView method id div for bottom, I want to put it at the bottom. As long as it can be displayed, other chat message...
var myNumber = { value: 1, add: function(i){ var helper = function(i){ console.log(this); this.value += i; } helper(i); } } myNumber.add(1); Why does this this point to window?? The add method called by the myNumber o...
<template> <div style="height: 100%;"> <mt-header title=""> <mt-button icon="back" slot="left" v-tap="{methods: switchView, view: Post }">< mt-button> &l...
Click the button to show that (Bing s daily wallpaper) is successful, and then when the background of the page changes, it takes time to render, and there will be a white background color. How to solve this? ...