草庐IT

input-container

全部标签

javascript - 是什么导致 TypeError : Expected `input` to be a `Function` or `Object` issue with gtoken and pify?

我正在尝试将FirebaseRemoteConfig集成到我的Cordova应用程序中,以强制用户在拥有最低版本时进行更新,但导入包会导致错误。它不能在代码中,因为错误是在代码运行之前抛出的,只是通过导入包。TypeError:Expected`input`tobea`Function`or`Object`,got`undefined`at./node_modules/gtoken/node_modules/pify/index.js.module.exports(index.js:45)atObject../node_modules/gtoken/build/src/index.js

javascript - Jquery on Input 不适用于动态插入的值

我正在尝试使用jquery提醒从javascript代码生成的值,该值是在输入框中生成的问题是jquery无法检测到更改,我测试的命令是“更改,输入”但是当我手动输入一个值jquery触发器示例代码:值是在javascript上动态生成并推送/插入到输入框,该值不是手动生成的javascript:document.getElementById("displayDID").value=DisplayName;html:jquery:$('#displayDID').on("input",function(){varwork=$(this).val();alert(work);});id=

javascript - 是否可以知道 input type = datetime-local 是否已填充一半?

是否有可能知道inputtype=datetime-local是否已填充一半?比如只填日期或者时间?无论是空的还是半填的,input标签的元素对象值为空。varvaluedate=document.getElementById('dueDate');console.log(valuedate.value());对于这两种情况,Date.parse也会返回NaN。有可能的解决方案吗?如果有帮助,我正在使用Jquery和AngularJS。随意使用其他输入类型(没有额外的库)发布更清晰的解决方案。目的是让用户填写这两个字段。编辑:字段可以留空或完全填写。我需要知道它是否已填满一半,以便我可

JavaScript 添加事件监听器 : 'input' versus 'keyup'

这个问题在这里已经有了答案:What'sthedifferencebetweenkeyup,keydown,keypressandinputevents?(2个答案)关闭6年前。当我想在插入后立即获取文本输入的值时,我会使用“keyup”事件。现在我在CodeReview问题中看到使用事件“输入”来完成相同的任务。CodeReview问题(第5行):https://codereview.stackexchange.com/questions/141937/registration-form-validation-in-jquery我做了一些修改。做了这个演示:varbox=docume

javascript - Liferay <liferay-ui :input-date> control

大家好,我是Liferay的新手,我正在做一些从jsp到Liferay门户的移植。如果我有一个包含两个日期的portletjsp,例如:从日期迄今为止并为每个日期字段使用两个不同的liferay-ui:input-date,例如:...Fromdate:'dayValue=""dayNullable=""monthParam=''monthValue=""monthNullable=""yearParam=''yearValue=""yearNullable=""yearRangeStart=""yearRangeEnd=""firstDayOfWeek=""imageInputId=

javascript - 结合 angularJS 和 d3.js : Refreshing a plot after submitting new input parameters

我希望在单击输入字段中包含新值的提交按钮后,我的网络d3.js绘图将根据生成的新图进行更新通过新输入值。在下面,您可以找到我的示例代码:GenerateGraph.js该文件包含一系列函数,可根据提交输入值。然后需要在浏览器中刷新图形。functiondegree(node,list){vardeg=newArray();for(vari=0;inetwork.html!DOCTYPEhtml>graphSimulatinganetwork//gettheinputparametersforplottingangular.module("myApp",[]).directive('ne

javascript - React/Redux 服务器端渲染中的警告 : Did not expect server HTML to contain a <li> in <ul>.

我是第一次使用React和Redux进行服务器端渲染,似乎遇到了一些困难。我收到警告:Warning:DidnotexpectserverHTMLtocontainain.我查了一下,这意味着html树不匹配。我不确定那是怎么回事。有没有明显的方法来解决它?这是我的代码,它会发出警告。importReact,{Component}from'react';import{connect}from'react-redux';importactionsfrom'../actions';classUsersListextendsComponent{componentDidMount(){if(t

javascript - VueJS : input with dynamic value + v-model

在设置输入radio和v模型的值时,我遇到了VueJS问题。我不明白为什么我不能为输入动态设置值并使用模型来检索用户选择的输入。在代码中更容易理解:exportdefault{props:["question","currentQuestion"],data(){return{answer:undefined}},computed:{isCurrent(){returnthis.currentQuestion&&this.currentQuestion.id==this.question.id;}},methods:{groupName(question){return'questio

javascript - 脚本错误 : Unable to modify the parent container element before the child element is closed

脚本错误:在关闭子元素之前无法修改父容器元素。我应该怎么办?我单击"is",但未显示我的网页。在我的产品页面代码的开头,我有:http://pastebin.com/iiUfMq1v除IE8外,所有浏览器都运行良好,IE8是唯一会抛出任何类型错误的浏览器。有什么想法吗? 最佳答案 请检查这些链接http://answers.microsoft.com/en-us/ie/forum/ie8-windows_other/html-parsing-error-unable-to-modify-the-parent/e64759e0-d34

javascript - 如何将 iron-input 双向绑定(bind)到 dom-repeat 的项目?

我刚开始玩Polymer1.0,正在尝试对集合进行非常简单的绑定(bind)。我能够在dom-repeat中显示文本,但是two-way绑定(bind)到iron-input不起作用。我尝试了字符串数组和对象。运气不好。{{item.value}}Polymer({is:"hello-world",ready:function(){this.data=[{value:"Hello"},{value:"World!"}];}}); 最佳答案 更改为:value="{{item.value::input}}"看这里:http://pln