自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 收藏
  • 关注

转载 PHP替换回车换行的三种方法

一个小小的换行,其实在不同的平台有着不同的实现,为什么要这样,世界是多样的!本来在Unix世界换行用/n来代替换行,Windows为了体现不同,就用/r/n,更有意思的是,Mac中又用了/r。所以,写的程序在不同的平台上,有着不少的麻烦,比如要替换换行符。第一种方式str_replace(array("/r", "/n", "/r/n"), "", $string);第二种方式,就用正则表达示$str = preg_replace('//s*/', '', $str);

2020-06-22 16:41:24 127

转载 判断js值是否设置

I generally use the typeof operator:if (typeof obj.foo !== 'undefined') { // your code here}It will return "undefined" either if the property doesn't exist or its value is undefined.(See also: Diff...

2018-04-17 16:27:25 1025

转载 magento crud操作

Today we’re going to cover creating Magento 2 CRUD models. CRUD stands for Create, Read, Update, and Delete, and commonly refers to framework features used to read and write information to/from the un...

2018-03-30 22:49:38 438

原创 管理magento模型版本的相关数据库

setup_module

2018-03-30 22:46:29 164

原创 git分支约定

master develop feature release hotfix 

2018-03-27 10:41:47 142

转载 git放弃本地修改,重新更新最新系统

如果想放弃本地的文件修改,可以使用git reset --hard FETCH_HEAD,FETCH_HEAD表示上一次成功git pull之后形成的commit点。然后git pull.

2018-03-19 17:05:24 3031

翻译 MAGENTO如何定位layouts

会定位LAYOUTS,就相当于会修改MAGENTO前端了。Locate layoutsJust like templates, layouts are saved on a per-module basis. You can easily locate the layout file by determining in which module the templates for the elem...

2018-03-19 16:28:05 159

转载 MAGENTO主题继承

Theme inheritanceWhat's in this topicTheme inheritance enables you to easily extend themes and minimize the maintenance efforts. You can use an existing theme as a basis for customizations, or minor s...

2018-03-16 13:28:02 220

转载 MAGENTO的目录结构

/app – 程序根目录   /app/etc – 全局配置文件目录   /app/code – 所有模块安装其模型和控制器的目录   /app/code/core – 核心代码或经过认证得模块,如果要升级不要这里的代码   /app/code/community – 社区版的模块目录   /app/code/local – 定制代码目录   /app/code/core/Mage – magen...

2018-03-16 11:57:41 567

翻译 修改MAGENTO2.1默认邮件模板

Customize email templatesEmail templates are stored in the <module_dir>/view/<area>/email directory of their respective modules. For example, the template for the new order transactional e...

2018-03-16 11:26:25 1362

转载 删除远程分支

先查看远程分支[plain] view plain copygit branch -r  使用下面两条命令来删除远程分支[python] view plain copygit branch -r -d origin/branch-name  git push origin :branch-name  删除本地分支$ git branch -d <BranchName>...

2018-03-16 10:16:31 138

转载 git 常用命令

git rm 删除文件git rm -r 递归删除git commit -am "1111" 添加所有更改并提交到镜像git commit --amend -m "new message"  更新提交信息,也可以添加文件后再提交。git pushgit pull origin mastergit init 初始化新的空项目  git clone 项目地址 /本地路径 配置用户名和邮箱git con...

2018-03-16 09:18:21 126

原创 windows和linux文件系统不同导致的故障

Lib 和 lib在windows下被认成同一个文件夹,但上传到服务器后却出现故障,导致找不到文件,原来是文件夹合并后大小写发生了改变,当然会找不到了。thinkphp 找到不控制器的故障就是这个原因导致的,还以为整个站点出了什么状况。

2017-04-03 08:56:56 216

原创 为shopnc搭建LINUX环境

1、选择阿里云CENTOS 6公共镜像2、yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel b

2017-03-16 11:43:40 240

原创 table边框1像素

.wenzhang{ border-collapse:collapse; }

2017-03-16 11:35:48 926

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除