默认情况下,magento只支持邮箱登录,所以我们需要修改一下代码。思路是:可以通过输入的手机号和用户名来查找邮箱。首先需要重写控制器,添加配置文件<rewrite><模块名_控制器_account><from><![CDATA[#^/customer/account/#]]></from><to&g..
分类:
移动开发 时间:
2015-12-16 12:51:13
阅读次数:
172
call方法在使用一个指定的this值和若干个指定的参数值的前提下调用某个函数或方法.注意:该函数的语法与apply()方法的语法几乎完全相同,唯一的区别在于,apply()方法接受的是一个参数数组,而call()方法接受的是一系列参数列表。了解完这两个方法的概念后,我们来一步一步理解..
分类:
移动开发 时间:
2015-12-16 12:44:50
阅读次数:
165
centos虚拟机移动之后,可能会发生网卡无法启动的情况。1、vi/etc/sysconfig/network-scripts/ifcfg-eth0ifcfg-eth0的配置文件里保存了以前的MAC地址,就把这一行删除掉再重启网卡2、/etc/udev/rules.d/70-persistent-net.rules删除后重启机器因为这个文件绑定了网卡和mac地址..
分类:
移动开发 时间:
2015-12-16 12:41:47
阅读次数:
165
android中,当app需要向发送一些通知,让使用者注意到你想要告知的信息时,可以用Notification.下面,就来讨论一下,Notification的用法,我们从实际的小例子来进行学习。1.新建一个项目,在layout布局里写两个按钮,一个用来开启通知,一个用来关闭通知。下面直接上布局代码。...
分类:
移动开发 时间:
2015-12-16 12:34:31
阅读次数:
198
原文链接:http://segmentfault.com/a/1190000004050697?utm_source=tuicool&utm_medium=referral由于国内Android市场众多渠道,为了统计每个渠道的下载及其它数据统计,就需要我们针对每个渠道单独打包,如果让你打几十个市场的...
分类:
移动开发 时间:
2015-12-16 12:35:38
阅读次数:
218
对话框:代码: 1 public void click(View v) { 2 AlertDialog.Builder builder = new AlertDialog.Builder(this); 3 builder.setIcon(android.R.d...
分类:
移动开发 时间:
2015-12-16 12:31:05
阅读次数:
2351
#import typedef void (^MyBlock)(NSString*);@interface SecondViewController : UIViewController@property (retain,nonatomic)UITextField* myTextField;@pro...
分类:
移动开发 时间:
2015-12-16 12:30:33
阅读次数:
688
pc端样式重置*{ margin:0; padding:0;}body{ font-size:14px; font-family:微软雅黑;font-style:normal;}a{ text-decoration:none}a,a:hover{ transition:background 0.5s...
分类:
移动开发 时间:
2015-12-16 12:29:33
阅读次数:
186
ios实现0.5px的几种方法,安卓设备也实用,安卓和ios实现细线边框
分类:
移动开发 时间:
2015-12-16 12:25:08
阅读次数:
999
1.首先使用Cocoapods导入库 ZBarSDK2.敲代码:ViewController.h//// ViewController.h// erweima//// Created by shaoting on 15/12/16.// Copyright © 2015年 9elephas....
分类:
移动开发 时间:
2015-12-16 12:24:22
阅读次数:
242
Prefix Header 中填入绝对路径//PCH 里面加入这个写代码#ifndef TARGET_OS_IOS#pragma mark ---------- for AFNetwork start --------#ifndef TARGET_OS_IOS#define TARGET_OS_I....
分类:
移动开发 时间:
2015-12-16 12:18:42
阅读次数:
375
原文网址:http://www.2cto.com/kf/201505/401382.html很多时候,我们在使用应用时,会出现输入法软键盘弹出的问题,通常情况下,我们默认会使用户点击返回键或者下一步对软键盘进行隐藏。为了更好的体验,我们可以实现当用户使用完毕软键盘时。点击空白区域即可实现隐藏的功能。...
分类:
移动开发 时间:
2015-12-16 12:15:13
阅读次数:
408
概论所谓的持久化,就是将数据保存到硬盘中,使得在应用程序或机器重启后可以继续访问之前保存的数据。在iOS开发中,有很多数据持久化的方案,接下来我将尝试着介绍一下5种方案:plist文件(属性列表)preference(偏好设置)NSKeyedArchiver(归档)SQLite 3CoreData沙...
分类:
移动开发 时间:
2015-12-16 12:12:51
阅读次数:
238
自定义一个常用ListViewController.h文件1 #import 2 3 @interface ListViewController : UIViewController4 5 -(void)diquButtonClick;6 7 @end.m文件 1 // 2 // ListVi...
分类:
移动开发 时间:
2015-12-16 12:11:12
阅读次数:
1393
var xw = { name : "小王", gender : "男", age : 24, say : function(sch, jun) { console.log(arguments); //console.log(this.name +...
分类:
移动开发 时间:
2015-12-16 12:10:30
阅读次数:
182
在ios测试中,需要用到滑动,所以用java封装了一套滑动的方法,不多说,贴代码/** * 上滑1/4屏幕 */ public void slideUP1_4() { int x = driver.manage().window().getSize().width...
分类:
移动开发 时间:
2015-12-16 12:03:57
阅读次数:
371