首页 软件开发 代码片段 ( Page 18 )

代码片段 8064

#C#
C#编写 HTML生成PDF

html中 <body>     <div style=”text-align:center;”>  …

c#
2016-01-23 738

#PHP
php获取中文字符串的首字符拼音字母

$str="这是一个测试程序1"; echo getFirstCharCode($str); function getFirstCharCode($str){ $str= icon…

php
2016-01-23 494

#C#
C#中String类的几个方法(IndexOf、LastIndexOf、Substring)

String.IndexOf String.IndexOf 方法 (Char, Int32, Int32) 报告指定字符在此实例中的第一个匹配项的索引。搜索从指定字符位置开始,并检…

c#
2016-01-23 787

#Python
Python获取脚本所在目录的正确方法

1 C:test   [dir] getpath     [file] path.py  …

2016-01-23 243

#PHP
php curl通过代理获取数据

$curl=curl_init(); curl_setopt($curl, CURLOPT_URL, "http://www.baidu.com/"); curl_setopt($…

php
2016-01-23 858

#PHP
php curl 上传文件

假设server端上传文件处理脚本upload.php: <?php print_r($_POST); print_r($_FILES); 1、使用 CURL 默认的方法 /…

php
2016-01-23 639

#Java
pinyin4j使用中文转化拼音

[Java]代码     package com.app.common.code; import net.sourceforge.pinyi…

2016-01-23 655

#js/jquery
html5 drawImage 不显示问题

html5在使用drawImage绘图的时候,出现刷新就不显示的问题,原来要想是图片正常显示需要为图片添加一个onload事件,直接看代码 <!DOCTYPE HTML>…

2016-01-23 764

#Python
python 爬虫

    学习python就一直想做爬虫的东西,还要继续学     理论上的东西一要加强 #!/usr…

2016-01-23 816

#PHP
php中截取中文字符串

1. 截取GB2312中文字符串 <?php < ?php //截取中文字符串 function mysubstr($str, $start, $len) { $tmp…

php
2016-01-23 451

#PHP
php简体繁体转换

<?php class utf8_chinese { private $utf8_gb2312; private $utf8_big5; public function __…

php
2016-01-23 749

#Java
终极图片选择器(超高仿微信),实现多选/单选/剪切/拍照/预览等功能

单选、多选      单选,没有预览功能。     多选,可以控制最大 选择图片…

2016-01-23 840
1 16 17 18 19 20 672