草庐IT

READ_PRIVILEGED_PHONE_STATE

全部标签

javascript - 从没有页眉和页脚的 javascript 打印 : state of the art?

当我使用javascript打印内容时,浏览器会自动添加页眉和页脚(url/date/pagenr)。目前似乎没有办法从webapp端抑制这一点。Css3最终可能会成为它的解决方案(例如使用@page,@top-leftstyles),但目前似乎在这里不起作用(winvistachrome17.0.942.0/firefox9.0).它应该什么时候出现在浏览器中?chrome-browser可能会出现另一种解决方案:在以上版本中,printdlg不是模态system-printdlg,而是在网站内呈现(还有一个禁用页眉和页脚的复选框)。既然chrome重做了printdlg,chrom

javascript - 类型错误 : Cannot read property 'Roboto-Regular.ttf' of undefined

尝试使用JSAPIPdfMake构建PDF:然后根据thisHelloworld,我跑:vardocDef={content:'ThisisansamplePDFprintedwithpdfMake'}pdfMake.createPdf(docDef).download('optionalName.pdf');我遇到了这个错误:UncaughtTypeError:Cannotreadproperty'Roboto-Regular.ttf'ofundefined是否需要Roboto-Regular.ttf文件?如果是,放在哪里? 最佳答案

javascript - 类型错误 : Cannot read property 'error' of undefined on React Chrome Extension

我正在使用React-Chrome-Reduxlibrary开发ReactChrome扩展我是第一次用这个开发,一直卡在错误中,不知道是什么原因。我的弹出式应用程序在运行时失败,并在控制台上显示以下错误消息:Errorineventhandlerfor(unknown):TypeError:Cannotreadproperty'error'ofundefined我尝试调试并在错误的确切位置设置断点:returnnewPromise(function(resolve,reject){chrome.runtime.sendMessage({type:_constants.DISPATCH_

javascript - 如何避免在 Vue 中一直写 this.$store.state.donkey?

我正在学习Vue,我注意到我到处都有或多或少的以下语法。exportdefault{components:{Navigation,View1},computed:{classObject:function(){return{alert:this.$store.state.environment!=="dev",info:this.$store.state.environment==="dev"};}}}一直写出this.$store.state.donkey很痛苦,而且它也降低了可读性。我感觉到我正在以一种不太理想的方式来做这件事。我应该如何引用商店的状态?

javascript - 未捕获的类型错误 : Cannot read property 'aDataSort' of undefined

我正在研究分页,我正在使用DataTables插入,在某些表上它可以工作,但在某些表上它会出错:UncaughtTypeError:Cannotreadproperty'aDataSort'ofundefined我的页面脚本如下:$(document).ready(function(){$('.datatable').dataTable({"scrollY":"200px","scrollCollapse":true,"info":true,"paging":true});});//HTML代码不知道问题是怎么来的,我知道这是很常见的错误,但我搜索并没有找到任何支持我的问题的东西。有谁

javascript - npm outdated -g Error 'Cannot read property ' length' of undefined'

我正在尝试确定我的npm安装的全局包的版本状态。在终端中运行npmoutdated-g--depth=0后,我收到此错误:npmERR!Cannotreadproperty'length'ofundefinednpmERR!Acompletelogofthisruncanbefoundin:npmERR!/Users/dangranger/.npm/_logs/2019-03-14T21_58_37_962Z-debug.log/Users/dangranger/.npm/_logs/2019-03-14T21_58_37_962Z-debug.log的内容0infoitworkedi

javascript - Moment.js : Uncaught TypeError: Cannot read property 'defineLocale' of undefined at moment. js:13

当运行下面的小html文件时,我看到以下控制台日志错误:moment.js:13UncaughtTypeError:Cannotreadproperty'defineLocale'ofundefinedatmoment.js:13atmoment.js:9atmoment.js:10JSBinvarnow=moment()console.log(now);我还尝试用这个CDN链接替换对本地库的引用:https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/locale/af.js有人知道这个错误是什么吗?

javascript - react native v0.56 : Cannot read property 'filename' of undefined at PluginPass. JSXOpeningElement

我刚刚将ReactNative从0.55更新到0.56。但是,当我尝试运行代码(react-nativerun-android或run-ios)时,捆绑停止到这一点:Loadingdependencygraph,done.error:bundlingfailed:TypeError:Cannotreadproperty'filename'ofundefinedatPluginPass.JSXOpeningElement({path_to_my_project}/react-native/node_modules/babel-plugin-transform-react-jsx-sour

javascript - Google Maps API v3 热图错误 : "Cannot read property ' HeatmapLayer' of undefined"

我正在尝试将Heatmaps图层加载到我的谷歌地图上,但出于某种原因,我一直收到错误消息“无法读取未定义的属性‘HeatmapLayer’。”map=newgoogle.maps.Map(document.getElementById("gmaps"),{zoom:11,center:newgoogle.maps.LatLng(39.788403,-86.19990800000001),mapTypeControl:false,streetViewControl:false,mapTypeId:google.maps.MapTypeId.ROADMAP,panControl:false

javascript - 使用 chrome.notifications.create 时出错 "Uncaught TypeError: Cannot read property ' create' of undefined"

您好,我在chrome应用的js函数中调用chrome.notifications.create时出错。可以在函数外部正常使用,但在函数内部时出现以下错误:UncaughtTypeError:Cannotreadproperty'create'ofundefined代码如下:document.addEventListener('DOMContentLoaded',function(){document.getElementById('submit').addEventListener('click',submit);});functionsubmit(){varoptions={typ