發表文章

目前顯示的是 11月, 2015的文章

C# MVC Bundle JS CSS

Nuget Command Install-Package Microsoft.AspNet.Web.Optimization 新增App_Start\BundleConfig.cs public class BundleConfig { public static void RegisterBundles(BundleCollection bundles) { //JS bundles.Add(new ScriptBundle("~/Scripts/jquery")                              .Include("~/Scripts/jquery-{version}.js")); //CSS bundles.Add(new StyleBundle("~/Content/jquery_ui")                              .Include("~/Content/themes/base/*.css")); } } 編輯global.asax.cs using System.Web.Optimization; protected void Application_Start() {      ...      BundleConfig.RegisterBundles(BundleTable.Bundles);      ... } 編輯Views/web.config <system.web.webPages.razor>     <host>       <namespaces>         <add name...

找不到Cordova/CDVViewController.h

Xcode 更新到 7.1後,在要上架時發生錯誤 找不到"Cordova/CDVViewController.h" 解決方法 開啟Build Settings, 找到Search Paths區塊 在Header Search Paths的Debug和Release裡加入下面行 "$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include"

Cordova 在 iOS 連結FB應用程式發生問題

更新到iOS 9.1發生的問題 因為有設置按鈕可以連結到粉絲團 但iOS更新後就發生錯誤 "This app is not allowed to query for scheme fb" 解決辦法 在Info.plist加入 Key:LSApplicationQueriesSchemes, Type:Array 在LSApplicationQueriesSchemes底下加入(Key會自動加入編號) Type:String, Value:fb

Cordova在iOS裡無法連上網路

最近更新到 iOS 9.1 時 發現都無法抓取資料 才看一下錯誤訊息 "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection" 後來在網路上找到解決方法 在info.plist加入 Key:NSAppTransportSecurity, Type: Dictionary 然後在NSAppTransportSecurity底下加入 Key:NSAllowsArbitraryLoads, Type:Boolean, Value:YES