访问首页的时候,路径时没有的,magneto会获取站点的默认路径Mage_Core_Controller_Varien_Router_Standard::match if ($path) { $p = explode('/', $path); } else { $p = explode('/', $...
分类:
其他好文 时间:
2015-06-20 11:52:21
阅读次数:
126
继续上篇分享.
/*使用分组模式匹配*/
var pattern =/8(.*)8/;//获取8..8之间的任意字符
var str = 'goo8gle8';
str.match(pattern);
alert(RegExp.$1);//gle,得到第一个分组里的字符串内容
var pattern =/8(.*)8/;//获取8..8之间的任意字符
var str = 'go...
分类:
其他好文 时间:
2015-06-20 10:34:32
阅读次数:
151
xml文件代码部分<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="10dp"
>
<EditText
a..
分类:
移动开发 时间:
2015-06-19 21:39:20
阅读次数:
180
JavaScript示例代码如下:
var newContent= content.replace(/]*src=['"]([^'"]+)[^>]*>/gi,function(match,capture){
//capture,返回每个匹配的字符串
var newStr='';...
分类:
编程语言 时间:
2015-06-19 16:51:43
阅读次数:
361
因工作的关系,Eclipse开发的Java项目拷来拷去,有时候会报一个很奇怪的错误。明明源码一模一样,为什么项目复制到另一台机器上,就会报“java compiler level does not match the version of the installed java project fac...
分类:
编程语言 时间:
2015-06-19 15:02:25
阅读次数:
145
xml中的代码实现<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="20dp"
>
<TextView
and..
分类:
移动开发 时间:
2015-06-19 13:40:55
阅读次数:
152
??1 布局文件, LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layou...
分类:
移动开发 时间:
2015-06-19 01:31:50
阅读次数:
137
//首先在XML文件中配置一下
<TextView
android:id="@+id/textViewId"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="数据"
/>
<Button
android:id="@+id/butid"
android:layout_width="match_parent"
android:layout..
分类:
移动开发 时间:
2015-06-18 11:45:13
阅读次数:
176
var userAgent = navigator.userAgent.toLowerCase(); browser = { version: (userAgent.match(/.+(?:rv|it|ra|ie|chrome)[\/: ]([\d.]+)/) || [0, ...
分类:
其他好文 时间:
2015-06-17 15:00:49
阅读次数:
78
三个属性都用来适应视图的水平或垂直大小,一个以视图的内容或尺寸为基础的布局比精确地指定视图范围更加方便。1)fill_parent设置一个构件的布局为fill_parent将强制性地使构件扩展,以填充布局单元内尽可能多的空间。这跟Windows控件的dockstyle属性大体一致。设置一个顶部布局或...
分类:
移动开发 时间:
2015-06-17 13:12:20
阅读次数:
141