當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript parse.Parse類代碼示例

本文整理匯總了TypeScript中parse.Parse的典型用法代碼示例。如果您正苦於以下問題:TypeScript Parse類的具體用法?TypeScript Parse怎麽用?TypeScript Parse使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Parse類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: constructor

	constructor(){
		Parse.initialize("wQFYcalrOw3YwIQoQ1BcgiMFhGE0tL4P24uKXFDm", "vdPFwegmiQvcnGIrFe09eTCI9oOyxm5buocTBu03"); 
	}
開發者ID:saulmadi,項目名稱:acklen-slackbot,代碼行數:3,代碼來源:parseDB.ts

示例2: require

/// <reference path="../../typings/tsd.d.ts" />

var Parse = require('parse').Parse;
Parse.initialize('', '');

export class ParseManager{
    constructor(){
        
    }
    
    getOrders(){
        return 'test';
    }
    
    getProductsCategory(success: (products) => void)
    {
        var catClass = Parse.Object.extend("ProductsCategory");
        var query = new Parse.Query(catClass);
        query.find({
        success: function(categories) {
            success(categories);
        }
        });
    }
    
    getProducts(category: String, success:(products)=>void)
    {
        var cat = Parse.Object.extend("ProductsCategory");
        //var pro = Parse.Object.extend("Products");
        var innerQuery = new Parse.Query(cat);
        innerQuery.equalTo("objectId", category);
開發者ID:valero90,項目名稱:Angular2-Parse,代碼行數:31,代碼來源:ParseManager.ts

示例3:

import { PropertyDeveloperPage } from "../pages/property-developer/property-developer"
import { MockProvider } from '../providers/mock/mock';
import { PropertyTypeOwnPage } from '../pages/property-type-own/property-type-own'
import { PropertyTypeRentPage } from '../pages/property-type-rent/property-type-rent'

export const firebaseConfig = {
  
  apiKey:  "AIzaSyAakL66pSbJOEXY7dWBstaoKY63yS9eL1w",
  authDomain: "propertymanagement-77159.firebaseapp.com",
  databaseURL: "https://propertymanagement-77159.firebaseio.com",
  projectId: "propertymanagement-77159",
  storageBucket: "propertymanagement-77159.appspot.com",
  messagingSenderId: "667773470325"
};

Parse.initialize("myAppId");
Parse.serverURL = 'http://localhost:1337/parse';
Parse.masterKey = "secret";
// var parsePush = Parse.push = {
//   android: {
//     senderId: '894300595996',
//     apiKey: 'AIzaSyDV8WQ6g7yvFpHD40E7er99ZtsdRKi-e1k'
//   },
// }
Parse.cloud =  './cloud/main.js';
// Parse.JavaScriptKey = "fi6LWURzRGmTg7neZfI79MJaB2QHjWhiZ4nVFvKP";

@NgModule({
  declarations: [
    MyApp,
    TabsPage,
開發者ID:cybriz,項目名稱:ionic-projects,代碼行數:31,代碼來源:app.module.ts


注:本文中的parse.Parse類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。