kaishixue.com
域名年龄: 18年7个月2天HTTP/1.1 200 OK 服务器:nginx/1.2.3 访问时间:2014年10月14日 12:39:39 类型:text/html; charset=UTF-8 Transfer-Encoding: chunked 连接:keep-alive 动作:Accept-Encoding 语言环境:PHP/5.5.10 X-Pingback: http://www.kaishixue.com/action/xmlrpc Content-Encoding: gzip 网站编码:UTF-8
登录开始学蟠桃的学习博客首页读书目录有用链接关于AngularJS 学习笔记Publish: August 30, 2014Category: IOS,AndroidNo Comments使用 $http$http is not defined 解决方案在使用的function 中要引入 $http 参数Jsonp 调用.controller('FriendDetailCtrl', function($scope,$http, $stateParams) {$http.jsonp("http://xxx/index.php?hid="+$stateParams.friendId+"&callback=JSON_CALLBACK",{params:{id:'5'}}).success(function(data,status,headers,config){//alert(data.name);console.log(data);$scope.friend = data.param;}).error(function(data,status,headers,config){})})模板overflow-scroll 可滚动ng-bind-html 以html格式展示<ion-view title="{{friend.title}}"><ion-content has-header="true" padding="true" overflow-scroll="true" ng-bind-html="friend.content"></ion-content></ion-view>Mac 配置 android 开发环境Publish: August 21, 2014Category: AndroidNo Comments安装后编译不通过出现错误You cannot combine swipe dismissal and the action bar.bug原因:模拟器 android 包选了 level 20,换成 19以下的即可。 一条shell统计代码行数 Publish: July 30, 2014 Category: Centos No Comments 用shell命令即可,非常简单,进入你的工程目录,执行下列代码find . -name "*.py" |xargs grep -v "^$"|wc -l如果要统计ios开发代码,包括头文件的,命令如下find . -name "*.m" -or -name "*.h" |xargs grep -v "^$"|wc -l grep -v "^$"是去掉空行 注释也统计在代码量之内,毕竟也一个字一个字码出来的 Yii框架整合 Smarty 模板引擎 Publish: July 25, 2014 Category: PHP No Comments 1,下载Smarty 引擎wget http://www.smarty.net/files/Smarty-3.1.19.zip解压模板将 lib 目录内容拷贝到 ./protected/extensions/smarty 在 ./protected/extensions/smarty 下创建文件 CSmarty.php 内容如下<?php /** * Created by PhpStorm. * User: endler * Date: 14-7-24 * Time: 下午6:34 */ require_once(Yii::getPathOfAlias('application.extensions.smarty').DIRECTORY_SEPARATOR.'Smarty.class.php'); define('SMARTY_VIEW_DIR', Yii::getPathOfAlias('application.views')); class CSmarty extends Smarty { const DIR_SEP = DIRECTORY_SEPARATOR; function __construct() { parent::__construct(); $this->template_dir = SMARTY_VIEW_DIR; $this->compile_dir = SMARTY_VIEW_DIR.self::DIR_SEP.'template_c'; $this->caching = true; $this->cache_dir = SMARTY_VIEW_DIR.self::DIR_SEP.'cache'; $this->left_delimiter = '<!--{'; $this->right_delimiter = '}-->'; $this->cache_lifetime = 3600; } function init() {} }在 ./protected/components/Controller.php 中加入protected $smarty = ''; public function init() { //$this->smarty = Yii::app() $this->smarty = Yii::app()->smarty; }调用$this->smarty; PHP_Excel 读取文件笔记 Publish: July 5, 2014 Category: PHP No Comments 富文本处理if($cell instanceof PHPExcel_RichText) //富文本转换字符串 $cell = $cell ->__toString();获得Sheet标题$objPHPExcel->getActiveSheet()->gettitle();获得最大行数,列数$cellCount = ($objPHPExcel->getActiveSheet()->getHighestColumn()) ; $cellCount = PHPExcel_Cell::columnIndexFromString($cellCount); //将 AX类型的列号转换为最大列数 $rowCount = $objPHPExcel->getActiveSheet()->getHighestRow(); 1234...18NEXT » Categories PHP (25)MYSQL (4)IOS (10)Android (3)手机游戏 (5)项目管理 (1)Cocos2d-x (4)Unity3d (15)Houdini (5)数据挖掘 (3)Centos (10)JQUERY (4)FlexPaper (3)北京 (5) Archives August 2014July 2014June 2014May 2014April 20
© 2010 - 2020 网站综合信息查询 同IP网站查询 相关类似网站查询 网站备案查询网站地图 最新查询 最近更新 优秀网站 热门网站 全部网站 同IP查询 备案查询
2025-07-19 14:27, Process in 0.0042 second.