//將html轉為text public string HtmlToText(string strContent) { strContent = strContent.Replace("&", "&"); ...
分类:
其他好文 时间:
2014-07-06 23:15:59
阅读次数:
309
#pragma mark 发微博界面:sendStatus-(void)sendStatus{ if ([self.textView.text isEqualToString:@""]) { UIAlertView *alter = [[UIAlertView alloc...
分类:
其他好文 时间:
2014-07-06 22:34:00
阅读次数:
293
//_roaldSearchTextif([roadTitleLab.text rangeOfString:@"格力"].location !=NSNotFound) NSLog(@"yes");else NSLog(@"no");
分类:
移动开发 时间:
2014-07-06 21:52:19
阅读次数:
253
函数返回类型描述例子to_char(timestamp, text)text把时间戳转换成字串to_char(current_timestamp, 'HH12:MI:SS')to_char(interval, text)text把时间间隔转为字串to_char(interval '15h2m12s'...
分类:
其他好文 时间:
2014-07-06 21:31:07
阅读次数:
340
testJsonAsXMLNodeAttributeusing Newtonsoft.Json;using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threadi...
分类:
Web程序 时间:
2014-07-06 21:20:53
阅读次数:
193
要怎麼更改wordpress的 menu上 那一直顯示著"首頁"的頁籤呢這問題我實在是找好久終於給我找到在wp-includes的post-template.php這檔案找到這行$text = __('Home');把__('HOME')改成你要的字就行啦
分类:
其他好文 时间:
2014-07-06 17:08:46
阅读次数:
375
WebSocket首先新建一个空的文件夹,通过npm安装nodejs-websocket:npm install nodejs-websocket
新建app.js文件:var ws = require("nodejs-websocket");
ws.createServer(function(conn){
conn.on("text", function (str) {...
分类:
Web程序 时间:
2014-07-05 11:02:09
阅读次数:
335
public function post_tweet($tweet_text) {
include_once('twitter/tmhOAuth.php');//tmhOAuth.php为twitter api,放到/lib/twitter下,下载地址请往下阅读
$connection = new tmhOAuth(array(
'consumer_key...
分类:
其他好文 时间:
2014-07-04 07:59:39
阅读次数:
376
微信公众平台小功能多点,可以增加用户的粘性,不会感觉你微信没内容,就把你给取消关注了。所以得折腾各种有的没的东西。
个人封装天气预报功能代码如下(说明网上有很多此类代码,但是要自己理解,就得实际折腾)
<?php
header('Content-Type:text/html;charset=utf-8');
class WeChatMsgType
{
private $toUser...
分类:
微信 时间:
2014-07-04 06:54:57
阅读次数:
531