草庐IT

input_values

全部标签

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 - 如何更改h :outputText value by JavaScript?

我已经用2个inputText测试过,它运行良好例如vartdate=document.getElementById('txtDate');//h:inputTextvartdt=document.getElementById('txtDateTime');//h:inputTexttdate.onchange=function(){tdt.value=tdate.value;};如何更改“tdt”-h:outputText的值?vartdate=document.getElementById('txtDate');//h:inputTextvartdt=document.getEle

c# - SCRIPT5009 : 'JSON' is undefined in IE 10 The value of the property '$' is null or undefined, 不是函数对象

HelloWorld$(document).ready(function(){});$(document).ready(function(){$("#width").val($(window).width());$("#height").val($(window).height());});上面是我的aspx代码和jquery脚本,它给出了窗口的高度和宽度。当我从visualstudiohttp://localhost/Mypage.aspx运行web应用程序时,这段代码在所有浏览器上都完美无缺但是当我在iis上托管它并使用我的机器名称http://MyMachine/Mypage.a

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 - 优化 : Get specific Value(and not more) from IndexedDB

我正在做的是在客户端上保存和检索大量图像。(现在indexedDB对于这个简单的工作来说似乎有点过分了,但是因为它是唯一没有限制的跨浏览器解决方案(比如localStorage),所以我不得不使用它......而且它有效)这是我的数据库的样子:(更具体地说,我的数据库的唯一对象库)#|key(timeID)|value0|812378123|{data:¨....¨,tnData:¨...¨,timeID:812378123}1|912378123|{data:¨....¨,tnData:¨...¨,timeID:912378123}2....KeyValue是一个唯一的TimeID,

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 - knockout : Change css class based on value of observable

我在可观察数组上使用foreach:如您所见,我将可用性的当前值传递给函数availabilityCssClass,该函数将该值与一些预定义的字符串进行比较。根据匹配的字符串,它返回一个类名。self.availabilityCssClass=ko.computed(function(value){varavailability=value;if(availability==="Busy"||"DoNotDisturb"||"BeRightBack")return"leftStatusCellColorOrange";elseif(availability==="Away"||"Off