How to load. glb files

hi,
i try to loading model files in two ways, unable to display properly on screen;

 //fun 1
    var asset = new pc.Asset('robot', 'model', {
        url: '../../static/models/RobotExpressive.glb'
    });
    app.assets.add(asset);
    app.assets.load(asset);

    asset.ready(function () {
        var modelEntity = new pc.Entity();
        modelEntity.addComponent('model', {
            type: 'asset',
            asset: asset.resource
        });

        app.root.addChild(modelEntity);

       
        modelEntity.setName('robot');
        console.log("result:", app.root.findByName('robot'));

        // 设置模型实体的缩放值
        modelEntity.setLocalPosition(0, 1, 0);
        modelEntity.setLocalScale(100, 100, 100); 
    });`Code Highlight`
 //fun2
    app.assets.loadFromUrl("../../static/models/RobotExpressive.glb", "binary", function (err, aset) {
        if (!err) {
            console.log('suc:', aset);
        } else {
            console.error('err:', err);
        }
        var modelEntity2 = new pc.Entity();
        modelEntity2.addComponent('model', {
            type: 'asset',
            asset: aset.resource
        });

        console.log("asset22", aset.resource)
        app.root.addChild(modelEntity2);

        
          modelEntity2.setLocalPosition(0, 1, 0);
          modelEntity2.setLocalScale(100, 100, 100); 
    });

I don’t know where‘s the problem

a good example is here, but there are many others loading glb’s there:
https://playcanvas.github.io/#/graphics/render-asset

thanks a lot, i find it , it’s worked