मैं एक घटक में vue js के साथ काम कर रहे रिकैप्चा कॉलबैक प्राप्त करने का प्रयास कर रहा हूं। कैप्चा स्वयं काम करता है, लेकिन कॉलबैक नहीं जिसे मैं data-callback
विशेषता में परिभाषित करता हूं।वू जेएस google reCaptcha कॉलबैक
मैंने जो कुछ भी सोचा था, मैंने कोशिश की है, लेकिन मुझे अभी भी ReCAPTCHA couldn't find user-provided function: dothisthat
त्रुटि मिलती है।
यहाँ घटक
<script>
function dothisthat(){
alert(312);
}
</script>
<template>
<div class="well main-well">
<h4>Captcha</h4>
<p class="small">You must complete the captcha to finish your booking.</p>
<div id="captcha-wrapper">
<div class="g-recaptcha" :data-sitekey="captchaKey" data-callback="dothisthat"></div>
</div>
</div>
</template>
<script>
function dothisthat(){
alert(123);
}
import * as filters from '../../../filters';
import Translation from '../../../Translation';
export default {
name: 'Captcha',
props: {
},
computed: {
captchaKey: function() {
return this.$store.getters.captcha;
}
},
methods: {
dothisthat: function(){
return function() {
console.log("123");
};
}
},
mounted(){
function dothisthat() {
alert(123);
}
$(function() {
function dothisthat() {
alert(123);
}
});
}
}
</script>
नहीं dothisthat
कार्यों में से एक कहा जाता हो रहे है। मैं क्या गलत कर रहा हूँ?
कोशिश ': डेटा-कॉलबैक =" dothisthat "'? – thanksd
रीकैप्चा के साथ वापस आता है उपयोगकर्ता द्वारा प्रदत्त फ़ंक्शन नहीं मिला: फ़ंक्शन बाउंडफ़ोन (ए) { var l = arguments.length; वापसी एल ? एल> 1 ? fn.apply (ctx, तर्क) : fn.call (ctx, a) : fn.call (ctx) } – user2209644