码迷,mamicode.com
首页 >  
搜索关键字:helper    ( 908个结果
Razor 中定义函数
//声明函数 @helper GetWeek(int week) {switch (week){ case 0: @:星期天 break; case 1: @:星期一 break; ...
分类:其他好文   时间:2015-12-05 11:04:44    阅读次数:139
[LeetCode]Binary Tree Maximum Path Sum
public class Solution { private int result = Integer.MIN_VALUE; public int maxPathSum(TreeNode root) { helper(root); return result...
分类:其他好文   时间:2015-12-04 07:55:16    阅读次数:116
Leetcode题解(六)
21、Merge Two Sorted Lists题目直接上代码:class Solution {public: ListNode *mergeTwoLists(ListNode *l1, ListNode *l2) { ListNode *helper=new ListNode...
分类:其他好文   时间:2015-12-03 21:07:47    阅读次数:155
compass模块----Helpers
Color Stops:在使用CSS3渐变属性生成图片的时候,有时候为了打造更丰富的渐变效果除了声明渐变线上的起始点和终止点的色值,还有声明一些中间点的色值,这些点我们就称之为Color Stops。一个色值加上当前点的位置。当我们省略点位置表示的时候Color Stops helper funct...
分类:其他好文   时间:2015-12-02 12:21:37    阅读次数:142
[LeetCode]Count Univalue Subtrees
public class Solution { int result = 0; public int countUnivalSubtrees(TreeNode root) { helper(root); return result; } publi...
分类:其他好文   时间:2015-11-29 13:28:15    阅读次数:110
MVC Ajax Helper或jQuery异步方式加载部分视图
Model:namespace MvcApplication1.Models{ public class Team { public string Preletter { get; set; } public string Name { get; set; }...
分类:Web程序   时间:2015-11-29 06:29:27    阅读次数:158
[LeetCode]Kth Smallest Element in a BST
public class Solution { TreeNode result = new TreeNode(0); public int kthSmallest(TreeNode root, int k) { helper(root, k); return ...
分类:其他好文   时间:2015-11-27 17:32:33    阅读次数:111
Xml Helper
类的完整代码:using System;using System.Collections;using System.Xml;namespace Keleyi.Com.XmlDAL{public class XmlHelper{#region 公共变量XmlDocument xmldoc;XmlNod...
分类:其他好文   时间:2015-11-25 13:21:00    阅读次数:152
如何在 ejs 模板中使用 helper function 外部函数进行特殊处理?
一般我们想要在 ejs 模板中使用外部函数用于特殊的处理,比如:通常的做法是:使用app.locals来定义:app.locals.ellipsis = function(str, len) { return str;}// 使用使用ejs.filters来定义,详细用法:var ejs = ...
分类:Web程序   时间:2015-11-24 00:59:36    阅读次数:178
服务器基于PHP CodeIgniter,Android基于Volley实现多文件/图片上传(含服务器,web版和android客户端完整代码)
问题背景:app在上传图片时,同时传递参数,支持传递多个图片。本文中的环境默认已经配好了服务器的CodeIgniter框架。事实上不使用这个框架也是可以的。一,服务器部分1,在controllers下的helpers新建文件upload_helper.php<?php /** * Make multifile array input complaint with CI_Upload. * Fo...
分类:移动开发   时间:2015-11-20 15:38:03    阅读次数:237
908条   上一页 1 ... 55 56 57 58 59 ... 91 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!