# stream **Repository Path**: goduer/stream ## Basic Information - **Project Name**: stream - **Description**: No description available - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-03-03 - **Last Updated**: 2024-11-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
${item.channel_id}
${item.name}
`; box.appendChild(li); }); }); source.commit().then((res: Array${item.channel_id}
${item.name}
`; box.appendChild(li); }); }); const source1 = chain( fetch("http://api.jirengu.com/fm/v2/getSong.php").then((res) => res.json()) ).pipe(pluck("song", "0", "url")); source1.commit().then((url: string) => { console.log("url: ", url); const btn = document.querySelector("#btn"); btn.addEventListener("click", () => { window.open(url); }); }); // //event const source2 = chain( fetch("http://api.jirengu.com/getWeather.php").then((res) => res.json()) ).pipe(pluck("result")); const click = document.querySelector("#click"); click.addEventListener( "click", (e) => { source2.commit().then(res => { alert(JSON.stringify(res)) console.log(e) }) } ); const source3 = chain([0, 1, false, 2, "", 3]); const sourceFusing1 = chain(source3).pipe(compact); const sourceFusing2 = chain().pipe((d: MouseEvent) => d.type); sourceFusing1.commit().then((res) => { console.log("sourceFusing1", res); }); const filter = document.querySelector("#filter"); filter.addEventListener( "click", (e) => { sourceFusing2.commit(e).then((res) => { console.log(res) alert(res) }); } ); ``` [MIT](./LICENSE)