码迷,mamicode.com
首页 >  
搜索关键字:match    ( 5193个结果)
使用TCPDF插件生成pdf以及pdf的中文处理
目录(?)[+] 做了这么多年项目,以前只是在别人的项目中了解过PHP生成pdf文件,知道并不难,但是涉及到了pdf开发库,首先介绍pdf库。 多种多样的pdf开发库 1.WKHTMLTOPDF wkhtmltopdf是一个很好的解决方案,基本上可以原样输出html页面中的内容,包括:图片/代码高亮 ...
分类:其他好文   时间:2017-01-05 21:09:37    阅读次数:466
js判断浏览器类型
使用navigator.userAgent和来判断 PC端: <script type="text/javascript">var ua=navigator.userAgent.toLowerCase();if(ua.match(/webkit/i)){alert("chrome");}else i ...
分类:Web程序   时间:2017-01-04 21:27:31    阅读次数:216
java_js从字符串中截取数字
var str="1件*20桶*30包*123.45公斤"; var res=str.match(/\d+(\.\d+)?/g); alert(res); ...
分类:编程语言   时间:2017-01-03 18:51:57    阅读次数:165
判断安卓和IOS
var u = navigator.userAgent; var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端 var isiOS = !!u.match(/\(i[^;]+;( U;)? CP ...
分类:移动开发   时间:2017-01-03 15:37:15    阅读次数:249
获取URL中的参数
function GetQueryString(name){ var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if(r!=null)r ...
分类:Web程序   时间:2017-01-03 13:23:03    阅读次数:167
LeetCode 290 Word Pattern
Problem: Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection betwee ...
分类:其他好文   时间:2017-01-03 09:43:38    阅读次数:194
R自动数据收集第二章HTML笔记2(主要关于htmlTreeParse函数)
包含以下几个小的知识点 1htmlTreeParse函数源码和一些参数 2hander的写法 3关于missing函数 4关于if-else语句中else语句的花括号问题 5关于checkHandlerNames函数 6关于GeneralHandlerNames属性 7关于match函数 8关于in ...
分类:Web程序   时间:2016-12-30 23:23:44    阅读次数:1367
[LeetCode] Matchsticks to Square 火柴棍组成正方形
Remember the story of Little Match Girl? By now, you know exactly what matchsticks the little match girl has, please find out a way you can make one s ...
分类:其他好文   时间:2016-12-30 23:18:54    阅读次数:255
android include进来的组件 调用其子元素
include标签包裹着一个可复用的布局: <include layout="@layout/footer_detail" android:id="@+id/footer" android:layout_width="match_parent" android:layout_height="wrap ...
分类:移动开发   时间:2016-12-30 18:48:23    阅读次数:200
js的一些笔记
var txt = "Hello World!";document.write("<p>字体变大: " + txt.big() + "</p>");document.write("<p>字体缩小: " + txt.small() + "</p>");document.write("<p>字体加粗: ...
分类:Web程序   时间:2016-12-30 15:23:38    阅读次数:195
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!