前端屌丝

导航

2014年1月20日 #

sublime text3安装 pakeage control

摘要: 按下 ctrl+~在输入框输入import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHa 阅读全文

posted @ 2014-01-20 09:49 前端屌丝 阅读(615) 评论(0) 推荐(0) 编辑

2014年1月6日 #

wp8对json的处理

摘要: 首先引入所需要的包using System.Runtime.Serialization.Json;using System.Runtime.Serialization;using System.IO;using System.Diagnostics;using System.Text;开始代码namespace Datas{ public class TransforData { public int X { get; set; } public int Y { get; set; } public string Z { get; set;... 阅读全文

posted @ 2014-01-06 14:53 前端屌丝 阅读(204) 评论(0) 推荐(0) 编辑

2013年12月22日 #

windowsphone8翻页效果

摘要: 要在一个页面添加跳转动画效果,只要在页面头部引入xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"然后添加一段代码就可以 ... 阅读全文

posted @ 2013-12-22 22:46 前端屌丝 阅读(250) 评论(0) 推荐(0) 编辑

2013年12月19日 #

WindowsPhone设置启动欢迎页面

摘要: 在建立 Windows Phone 专案时,都会建立一个预设启动的页面 -- MainPage.xaml。但有的时候会希望能在 app 启动时,根据一些逻辑判断而选择不同的页面来启动,这时可以采用以下的作法。首先,以查看代码形式将目录中的Properties\WMAppManifest.xml的标签中的修改为將原本設定的NavigationPage="MainPage.xaml"拿掉。這樣的修改完畢後,再到App.xaml.cs檔案中,在Application_Launching事件中就可以自己決定要載入的画面(Page1.xaml或Page2.xaml),代码如下:pri 阅读全文

posted @ 2013-12-19 11:17 前端屌丝 阅读(259) 评论(0) 推荐(0) 编辑

2013年12月11日 #

解决firefox在未触发事件前无法使用window.event的问题

摘要: 可以设置一个全局变量event;然后在body上绑定mousedown事件,把事件对象赋值给上面的全局变量;if($.browser.mozilla){ var event=null; document.body.addEventListener('mousedown',function(e){ event=e; },false)} 阅读全文

posted @ 2013-12-11 09:44 前端屌丝 阅读(221) 评论(0) 推荐(0) 编辑

2013年12月1日 #

VS2012 for wp8下安装 toolkit

摘要: 安装toolkit先安装 Nuget 的程序包管理器;安装完Nuget之后就可以往项目里引入toolkit扩展了要自己写引入silverlight命名空间,xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit" 这个是在里面PS:如果在引入toolkit时出现以下错误:解决方法:删除原来的Nuget,重启vs,然后新建个源,把源地址改为:http://packages.nuget.org,并且要重新再联机安装个nuget(否则没办法出现n 阅读全文

posted @ 2013-12-01 17:56 前端屌丝 阅读(188) 评论(0) 推荐(0) 编辑

2013年11月24日 #

运行VS2012出现“未找到与约束....”的解决方法

摘要: 安装微软的windows补丁 KB2781514 ,补丁主要解决“在 .NET Framework 4.5 更新之后,Visual Studio 用户可能无法打开或创建 C++ 或 JavaScript 文件或项目。” 阅读全文

posted @ 2013-11-24 18:09 前端屌丝 阅读(298) 评论(0) 推荐(0) 编辑

2013年11月21日 #

js模拟a标签以tab页打开新页面的方法

摘要: 坑爹jquery,不能用简单的click()方法触发,换回原生js吧:第一种方法:var comment = document.getElementsByTagName('a')[0]; if (document.all) { // For IE comment.click(); } else if (document.createEvent) { //FOR DOM2 var ev = document.createEvent('MouseEvents'); ev.initEvent('click'... 阅读全文

posted @ 2013-11-21 16:12 前端屌丝 阅读(1070) 评论(0) 推荐(0) 编辑

2013年11月20日 #

phpExcel的基础案例

摘要: getProperties();$objProps->setCreator("Zeal Li");$objProps->setLastModifiedBy("Zeal Li");$objProps->setTitle("Office XLS Test Document");$objProps->setSubject("Office XLS Test Document, Demo");$objProps->setDescription("Test document, gener 阅读全文

posted @ 2013-11-20 15:54 前端屌丝 阅读(378) 评论(0) 推荐(0) 编辑

2013年10月31日 #

侧边滚动菜单Demo

摘要: 阅读全文

posted @ 2013-10-31 14:18 前端屌丝 阅读(345) 评论(0) 推荐(0) 编辑